47 lines
844 B
C#
47 lines
844 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Socket : MonoBehaviour
|
|
{
|
|
private bool isSocketed = false;
|
|
private Vector3 socketWorldPosition;
|
|
|
|
private EnemyMovement enemy;
|
|
void Start()
|
|
{
|
|
socketWorldPosition = transform.position;
|
|
}
|
|
|
|
Vector3 getSocketPosition()
|
|
{
|
|
return socketWorldPosition;
|
|
}
|
|
|
|
public void setIsSocketed(bool value)
|
|
{
|
|
isSocketed = value;
|
|
}
|
|
|
|
public bool getIsSocketed()
|
|
{
|
|
return isSocketed;
|
|
}
|
|
|
|
public void setEnemyGameobject(EnemyMovement enemy)
|
|
{
|
|
this.enemy = enemy;
|
|
}
|
|
|
|
public void removeEnemyGameobject()
|
|
{
|
|
this.enemy = null;
|
|
isSocketed = false;
|
|
}
|
|
|
|
public bool getEnemyVariablePushing()
|
|
{
|
|
return enemy.getIsPushing();
|
|
}
|
|
}
|