Пример #1
0
    void Start()
    {
        AI_Script     = FindObjectOfType <AITest>();
        freeze_Script = FindObjectOfType <Freezer>();

        //rb2d = GetComponent<Rigidbody2D>();  //get the child component of KO Message set to active
    }
Пример #2
0
 void Awake()
 {
     instance = this;
 }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     HealthBar = GetComponent <Image>();
     AI_Script = FindObjectOfType <AITest>();
 }
Пример #4
0
 void Start()
 {
     AI_Script     = FindObjectOfType <AITest>();
     Player_Script = FindObjectOfType <PlayerController>();
     ScreenShake   = FindObjectOfType <ShakeBehaviour>();
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     unitAI   = GetComponentInParent <AITest>();
     unitInfo = unitAI.GetUnitInfo();
 }