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