// Use this for initialization void Start() { NewCamPos = new Vector3(0, 42.83717f, -500); //NewBlockPos = new Vector3(5.091614f, -101.8378f, 0); FZSM = GameObject.Find("FootballZombie").GetComponent <FootballZombieSM>(); BlockEntrance = GameObject.Find("Referee Zombie Bottom"); BlockEntrance.SetActive(false); }
// Use this for initialization void Start() { NewCamPos = new Vector3(0, 42.83717f, -500); //NewBlockPos = new Vector3(5.091614f, -101.8378f, 0); FZSM = GameObject.Find("FootballZombie").GetComponent<FootballZombieSM>(); BlockEntrance = GameObject.Find("Referee Zombie Bottom"); BlockEntrance.SetActive(false); }
// Use this for initialization void Start() { _player = GameObject.Find("Player").GetComponent <Player>(); _health = GetComponent <FootballZombieHealth>(); CC = GetComponent <CharacterController>(); curAnim = GetComponent <tk2dSpriteAnimator>(); FZSM = GetComponent <FootballZombieSM>(); }
void Start() { FZSM = GetComponent <FootballZombieSM>(); curAnim = GetComponent <tk2dSpriteAnimator>(); RaiseZombieZone = GameObject.Find("RaiseZombieZone").transform; ZoneMaxX = (int)RaiseZombieZone.collider.bounds.max.x; ZoneMinX = (int)RaiseZombieZone.collider.bounds.min.x; ZoneMaxY = (int)RaiseZombieZone.collider.bounds.max.y; ZoneMinY = (int)RaiseZombieZone.collider.bounds.min.y; print("MAX: " + RaiseZombieZone.collider.bounds.max); print("MIN: " + RaiseZombieZone.collider.bounds.min); // StartCoroutine(RaiseZombie()); }
void Start() { FZSM = GetComponent<FootballZombieSM>(); curAnim = GetComponent<tk2dSpriteAnimator>(); RaiseZombieZone = GameObject.Find("RaiseZombieZone").transform; ZoneMaxX = (int)RaiseZombieZone.collider.bounds.max.x; ZoneMinX = (int)RaiseZombieZone.collider.bounds.min.x; ZoneMaxY = (int)RaiseZombieZone.collider.bounds.max.y; ZoneMinY = (int)RaiseZombieZone.collider.bounds.min.y; print ("MAX: " + RaiseZombieZone.collider.bounds.max); print ("MIN: " + RaiseZombieZone.collider.bounds.min); // StartCoroutine(RaiseZombie()); }
// Use this for initialization void Start() { _player = GameObject.Find("Player").GetComponent<Player>(); _health = GetComponent<FootballZombieHealth>(); CC = GetComponent<CharacterController>(); curAnim = GetComponent<tk2dSpriteAnimator>(); FZSM = GetComponent<FootballZombieSM>(); }