// Use this for initialization void Start() { manager = transform.parent.GetComponent <GolemBoss_Statemanager>(); if (thePlayer == null) { thePlayer = GameObject.FindGameObjectWithTag("Player"); } }
// Use this for initialization void Start() { if (thePlayer == null) { thePlayer = GameObject.FindGameObjectWithTag("Player"); } manager = transform.parent.GetComponent <GolemBoss_Statemanager>(); timeToAttack = 0; randomNumber = 0; accumTimeToAttack = 0; }
// Use this for initialization void Start() { if (thePlayer == null) { thePlayer = GameObject.FindGameObjectWithTag("Player"); } golemProjectiles = new GolemProjectile[12]; for (int i = 0; i < golemProjectiles.Length; ++i) { golemProjectiles[i] = null; } manager = transform.parent.GetComponent <GolemBoss_Statemanager>(); accumTimeToChangeState = 0; //startAccum = false; }
// Use this for initialization void Start() { healthUI = GetComponent <Image>(); if (!monster_tag.Equals("Untagged")) { GameObject [] allZeGo = GameObject.FindGameObjectsWithTag(monster_tag); foreach (GameObject zeGo in allZeGo) { if (zeGo.name.Equals(monster_name)) { monsterHealth = zeGo.GetComponent <HealthScript>(); golemStateManager = monsterHealth.GetComponentInChildren <GolemBoss_Statemanager>(); golemAwakeState = golemStateManager.gameObject.GetComponentInChildren <GolemBoss_AwakeState>(); break; } } } else { monsterHealth = GameObject.Find(monster_name).GetComponent <HealthScript>(); } }
// Use this for initialization void Start() { manager = transform.parent.GetComponent <GolemBoss_Statemanager>(); }