void Start() { FlyManager.Get().fliesLeft++; clickable = GetComponent <Clickable>(); switch (side) { case Side.Left: sideToAnim = 1; break; case Side.Right: sideToAnim = 2; break; } animator = GetComponent <Animator>(); }
public void LeaveScreen() { FlyManager.Get().OnFlyDead(); gameObject.SetActive(false); }