private void Start() { my_audioSource = GetComponent <AudioSource>(); popupController = GameObject.FindWithTag("Player").GetComponent <PopupDamageController>(); boxCol = GetComponent <BoxCollider>(); player = GetComponent <GameObject>(); juiceMeter = Locator.instance.GetJuiceMeter(); }
private void Start() { my_audioSource = GetComponent <AudioSource>(); popupController = GameObject.FindWithTag("Player").GetComponent <PopupDamageController>(); if (testFight == null) { testFight = GameObject.FindWithTag("TestFight").GetComponent <TestFight>(); } }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }