Пример #1
0
 protected void Awake()
 {
     model   = GameModel.GetInstance();
     display = GetComponent <ZombieSpriteDisplay>();
     state   = GetComponent <AbnormalState>();
     Invoke("Groan", Random.Range(5f, 10f));
 }
 protected void Awake()
 {
     model = GameModel.GetInstance();
     display = GetComponent<ZombieSpriteDisplay>();
     state = GetComponent<AbnormalState>();
     Invoke("Groan", Random.Range(5f, 10f));
 }
Пример #3
0
 void Awake()
 {
     animator    = transform.FindChild("zombie").GetComponent <Animator>();
     audioSource = GetComponent <AudioSource>();
     model       = GameModel.GetInstance();
     move        = GetComponent <ZombieMove>();
     state       = GetComponent <AbnormalState>();
 }
Пример #4
0
 void Awake()
 {
     animator = transform.FindChild("zombie").GetComponent<Animator>();
     audioSource = GetComponent<AudioSource>();
     model = GameModel.GetInstance();
     move = GetComponent<ZombieMove>();
     state = GetComponent<AbnormalState>();
 }
Пример #5
0
 protected void Awake()
 {
     state = GetComponent <AbnormalState>();
 }
Пример #6
0
 public void AddAbnormalState(AbnormalState AS)
 {
     AbnormalStateList.Add(AS);
     SecondAction += AS.StatuSecondEvent;
 }