Пример #1
0
 // Use this for initialization
 void Start()
 {
     move  = GetComponent <CharacterMovement>();
     jump  = GetComponent <CharacterJump>();
     gun   = GetComponentInChildren <Gun>();
     stats = GetComponent <PlayerStats>();
     menu  = INGameMenu.sSingletone;
 }
Пример #2
0
    private void Awake()
    {
        if (sSingletone == null)
        {
            sSingletone = this;
        }
        else
        {
            Destroy(gameObject);
        }

        active = false;
        gameObject.SetActive(active);
    }