void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } startTime = Time.time; Combinations = GetComponent <VSCombinationHandler>(); combination = GetComponent <CombiManager>(); player_1_life = Life; player_2_life = Life; }
void Start() { GM = VSGameManager.instance; middle = GetComponent <Image>(); }
void Start() { GM = VSGameManager.instance; prevLife = GM.Life; }
// Use this for initialization void Start() { GM = VSGameManager.instance; animator = transform.GetComponentInChildren <Animator>(); audioSource = GetComponent <AudioSource>(); }
private string Print = null; //print life text in gamescene string Later it change image ofr sprite void Start() { GM = VSGameManager.instance; }
void Start() { GM = VSGameManager.instance; slider = GetComponent <Slider>(); }