Further updates to state machines
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Core.SaveLoad;
|
||||
using Pixelplacement;
|
||||
using Pixelplacement.TweenSystem;
|
||||
using UnityEngine;
|
||||
@@ -10,7 +11,7 @@ public class soundBird_FlyingBehaviour : MonoBehaviour
|
||||
public float flightDelay;
|
||||
public float cooldownTime;
|
||||
|
||||
private StateMachine stateMachine;
|
||||
private AppleMachine stateMachine;
|
||||
private Animator animator;
|
||||
private TweenBase objectTween;
|
||||
//private Coroutine cooldownCoroutine;
|
||||
@@ -21,7 +22,7 @@ public class soundBird_FlyingBehaviour : MonoBehaviour
|
||||
|
||||
void Awake()
|
||||
{
|
||||
stateMachine = GetComponentInParent<StateMachine>();
|
||||
stateMachine = GetComponentInParent<AppleMachine>();
|
||||
animator = GetComponentInParent<Animator>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user