void Start()
 {
     empty = false;//for Monster_attack_States
     monster_controller = GetComponent <MonsterController>();
     monster_base       = GetComponent <Monster_Base>();
     reached_enemy      = false;
     state           = State.Busy;
     monsterf        = false;
     timer           = 0;
     marching_Player = false;
 }
Exemplo n.º 2
0
 void Start_Varibles()
 {
     speed              = 5.5f;
     unitstats          = GetComponent <UnitStats>();
     rb2d               = GetComponent <Rigidbody2D>();
     movement_vector    = new Vector2(1f, 0);
     sprRend            = GetComponent <SpriteRenderer>();
     m_Collider         = GameObject.FindGameObjectWithTag("MonsterSpawnP").GetComponent <BoxCollider2D>();
     m_Collider.enabled = false;
     collider_triggered = false;
     battleControl      = GetComponent <MonsterBattleHandler>();
     monster_base       = GetComponent <Monster_Base>();
     //battleControl.monsterf=true;
 }