예제 #1
0
 void Awake()
 {
     charactor = GetComponent <PlayerCharactor>();
     animator  = GetComponent <Animator>();
     gunAudio  = GetComponent <AudioSource>();
     gunAudio.Play();
 }
예제 #2
0
    // Update is called once per frame
    void OnTriggerEnter(Collider other)
    {
        PlayerCharactor player = other.GetComponent <PlayerCharactor>();

        if (player != null)
        {
            Debug.Log("Player hit");
        }
        Destroy(gameObject);
    }
예제 #3
0
 void ChangeCharactor()
 {
     if (!playerStats.playerBattle)
     {
         PlayerCharactor preCharactorNum = playerStats.playerCharactor;
         playerStats.playerCharactor = changeCharactor;
         playerStats.ChractorChange();
         changeCharactor = preCharactorNum;
     }
 }
예제 #4
0
    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;
        }
    }