void Awake() { charactor = GetComponent <PlayerCharactor>(); animator = GetComponent <Animator>(); gunAudio = GetComponent <AudioSource>(); gunAudio.Play(); }
// Update is called once per frame void OnTriggerEnter(Collider other) { PlayerCharactor player = other.GetComponent <PlayerCharactor>(); if (player != null) { Debug.Log("Player hit"); } Destroy(gameObject); }
void ChangeCharactor() { if (!playerStats.playerBattle) { PlayerCharactor preCharactorNum = playerStats.playerCharactor; playerStats.playerCharactor = changeCharactor; playerStats.ChractorChange(); changeCharactor = preCharactorNum; } }
public void ChangeCharactorSkillButton(PlayerCharactor chractor) { switch (chractor) { case PlayerCharactor.Kohaku_mode: skill_1_Button.text = "Size\nDown"; skill_2_Button.text = "Spide\nMode"; skill_3_Button.text = "Special\nSkill"; break; case PlayerCharactor.Azaha_mode: skill_1_Button.text = "Air\nWalkig"; skill_2_Button.text = "Portal"; skill_3_Button.text = "Magic\nShiled"; break; } }