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