public void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        RB = GetComponent <Rigidbody2D>();
    }
Exemplo n.º 2
0
 public override void OnStateEnter(
     Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     ghost = animator.GetComponent<GhostMovementController>();
 }