// Use this for initialization void Start() { move = GetComponent <CharacterMovement>(); jump = GetComponent <CharacterJump>(); gun = GetComponentInChildren <Gun>(); stats = GetComponent <PlayerStats>(); menu = INGameMenu.sSingletone; }
private void Awake() { if (sSingletone == null) { sSingletone = this; } else { Destroy(gameObject); } active = false; gameObject.SetActive(active); }