Example #1
0
    void Awake()
    {
        player        = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControl>();
        playerCommon  = player.GetComponent <CharacterCommon>();
        monster       = GetComponent <MonsterControll>();
        monsterCommon = GetComponent <CharacterCommon>();
        monsterInfor  = GetComponent <CharacterInformation>();

        attackLocation = transform.Find("Effect/Attack");
    }
Example #2
0
 void Awake()
 {
     monsterControll = GetComponent <MonsterControll>();
     characterCommon = GetComponent <CharacterCommon>();
 }