Esempio n. 1
0
 private void Awake()
 {
     gm                  = FindObjectOfType <GameManager>();
     col                 = GetComponent <CircleCollider2D>();
     animator            = GetComponent <Animator>();
     flashWhite          = GetComponent <FlashWhite>();
     flashWhiteDurration = flashWhite.flashWhiteDurration;
 }
Esempio n. 2
0
 private void Start()
 {
     rigid      = GetComponent <Rigidbody2D>();
     flashwhite = GetComponent <FlashWhite>();
     anim       = GetComponent <Animator>();
     seeker     = GetComponent <Seeker>();
     temMgr     = FindObjectOfType <TemManager>();
     zombie     = GetComponent <Zombie>();
 }