void Start() { agent = GetComponent <NavMeshAgent>(); anim = GetComponentInChildren <Animator>(); agent = GetComponent <NavMeshAgent>(); dog = RopeGod.instance; }
private void Awake() { instance = this; anim = GetComponentInChildren <Animator>(); rb = GetComponent <Rigidbody>(); SetParent(parent); lastRotationDir = transform.forward; maxVelocity = initMaxVelocity; }
private void Start() { rb = GetComponent <Rigidbody>(); agent = GetComponent <NavMeshAgent>(); anim = GetComponentInChildren <Animator>(); anim.SetFloat(randHash, Random.Range(0f, 30f)); dog = RopeGod.instance; GameManager.instance.mushrooms.Add(this); }
public override void SetChild(Node child) { base.SetChild(child); UpdateRopeEndTransform(); rg = child as RopeGod; if (rg != null) { enabled = true; } }
private void Start() { dog = RopeGod.instance; StartSpawningMushrooms(); }