Esempio n. 1
0
 void Start()
 {
     agent = GetComponent <NavMeshAgent>();
     anim  = GetComponentInChildren <Animator>();
     agent = GetComponent <NavMeshAgent>();
     dog   = RopeGod.instance;
 }
Esempio n. 2
0
 private void Awake()
 {
     instance = this;
     anim     = GetComponentInChildren <Animator>();
     rb       = GetComponent <Rigidbody>();
     SetParent(parent);
     lastRotationDir = transform.forward;
     maxVelocity     = initMaxVelocity;
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public override void SetChild(Node child)
 {
     base.SetChild(child);
     UpdateRopeEndTransform();
     rg = child as RopeGod;
     if (rg != null)
     {
         enabled = true;
     }
 }
Esempio n. 5
0
 private void Start()
 {
     dog = RopeGod.instance;
     StartSpawningMushrooms();
 }