예제 #1
0
    private void SetCharacter(GameObject character)
    {
        parent.character = character;

        var box = gameObject.GetComponent <BoxCollider>();

        if (box != null)
        {
            Destroy(box);
        }

        var scale = gameObject.GetComponent <TweenScale>();

        if (scale != null)
        {
            Destroy(scale);
        }
        CharacterSelectManager.AddPlayer(parent);
    }