// Use this for initialization
 void Start()
 {
     _MonsterProfile = GetComponent<MonsterProfile>();
     _TextureManager = GameObject.FindGameObjectWithTag("GameMaster").GetComponent<TextureManager>();
 }
Esempio n. 2
0
    public void Start()
    {
        // GetComponent of the monster
        seeker 	   = GetComponent<Seeker>(); // Get the seeker component of the AI GameObject
        controller = GetComponent<CharacterController>();
        _GameManager = GameObject.FindGameObjectWithTag("GameMaster").GetComponent<GameManager>();
        _MonsterProfile = GetComponent<MonsterProfile>();

        //Setup animation
        animation["attack_Melee"].wrapMode = WrapMode.Once;
    }