Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     rigidBody      = this.GetComponent <Rigidbody>();
     rigidBody.mass = 1000;
     this.rigidBody.freezeRotation = true;
     this.maxSpeed = 15;
     inception     = this.GetComponent <InceptionObject>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        if (!manager)
        {
            manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <ZombieFlockManager>();

            rigidBody = this.GetComponent <Rigidbody>();
            manager.followers.Add(this);
            maxSpeed                += Random.Range(-5, 5f);
            inceptionObject          = this.GetComponent <InceptionObject>();
            animator                 = this.GetComponentInChildren <Animator>();
            rigidBody.freezeRotation = true;
            inceptionObject.dead     = false;
        }
    }