public void UnstickEntity()
    {
        if (entity != null)
        {
            Debug.Log("Unstick");
            entityStats.canMove = true;
            entityStats.isStuck = false;

            entityStats.stuckTo = null;

            entityStats = null;
            entity      = null;
        }
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        _player = GameObject.Find("Player");

        _stats = GetComponent <LivingStats>();
    }
 private void Awake()
 {
     _livingStats = parent.GetComponent <LivingStats>();
 }
 private void Awake()
 {
     _stats = GetComponent <LivingStats>();
 }
 private void Awake()
 {
     _rigidbody2D = GetComponent <Rigidbody2D>();
     _livingStats = GetComponent <LivingStats>();
 }