Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 private void Start()
 {
     currentState  = State.SLEEP;
     autoIntensity = FindObjectOfType <AutoIntensity>();
     animator      = GetComponent <Animator>();
     agent         = GetComponent <NavMeshAgent>();
 }
Ejemplo n.º 2
0
 private void Start()
 {
     autoIntensity            = FindObjectOfType <AutoIntensity>();
     rigidBody                = GetComponent <Rigidbody>();
     rigidBody.freezeRotation = true;
     audioSource              = GetComponent <AudioSource>();
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        GetComponent <Animator>().runtimeAnimatorController = Resources.Load("Animators/" + plant.GetName()) as RuntimeAnimatorController;

        theSun = GameObject.FindGameObjectWithTag("TheSun").GetComponent <AutoIntensity>();
    }
Ejemplo n.º 4
0
 private void Start()
 {
     autoIntensity   = FindObjectOfType <AutoIntensity>();
     enemyController = FindObjectOfType <EnemyController>();
 }