Exemplo n.º 1
0
    public void Init(PlayerController playerControl)
    {
        playerTransform    = playerControl.transform;
        this.playerControl = playerControl;

        for (int i = 0; i < playerSkills.Length; i++)
        {
            playerSkills[i] = (PlayerSkill)PlayerSkill.Instantiate(playerSkills[i]);
            playerSkills[i].transform.parent = transform;
        }
    }