void Start() { rb = GetComponent <Rigidbody>(); flasher = GetComponentInChildren <MeshFlasher>(); jumpVel = Mathf.Sqrt(2 * -Physics.gravity.y * GameManager.main.fishJumpHeight); GameManager.main.currFishes.Add(this); if (M.Change(30)) { currEye = 3; } }
protected override void Awake() { base.Awake(); meshFlasher = GetComponent<MeshFlasher>(); }
void Start() { anim = GetComponentInChildren <Animator>(); meshFlasher = GetComponentInChildren <MeshFlasher>(); }
void Start() { flasher = GetComponentInChildren <MeshFlasher>(); cam = CameraController.main.cam; }