コード例 #1
0
    private void OnEnable()
    {
        Invoke("Stop", 1.5f);
        canMove         = false;
        isInvincibility = false;

        currentHealth = health;
        power         = 0;
        bomb          = 0;
        score         = 0;

        //Follower
        for (int index = 0; index < followers.Length; index++)
        {
            followers[index].GetComponent <Follower>().objectManager = objectManager;
            followers[index].SetActive(false);
        }

        //Shooter
        EquipShooter(0);
        equippedShooter.SettingFollower(followers);
        equippedShooter.Component(objectManager, GetComponentInChildren <Crosshair>().transform);
    }