This component makes a non-character object flicker when they get hit.
Inheritance: MonoBehaviour
Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
 protected override void Awake()
 {
     base.Awake();
     meshFlasher = GetComponent<MeshFlasher>();
 }
Exemplo n.º 3
0
 void Start()
 {
     anim        = GetComponentInChildren <Animator>();
     meshFlasher = GetComponentInChildren <MeshFlasher>();
 }
Exemplo n.º 4
0
 void Start()
 {
     flasher = GetComponentInChildren <MeshFlasher>();
     cam     = CameraController.main.cam;
 }