void Start() { AI_Script = FindObjectOfType <AITest>(); freeze_Script = FindObjectOfType <Freezer>(); //rb2d = GetComponent<Rigidbody2D>(); //get the child component of KO Message set to active }
void Awake() { instance = this; }
// Start is called before the first frame update void Start() { HealthBar = GetComponent <Image>(); AI_Script = FindObjectOfType <AITest>(); }
void Start() { AI_Script = FindObjectOfType <AITest>(); Player_Script = FindObjectOfType <PlayerController>(); ScreenShake = FindObjectOfType <ShakeBehaviour>(); }
// Start is called before the first frame update void Start() { unitAI = GetComponentInParent <AITest>(); unitInfo = unitAI.GetUnitInfo(); }