Exemple #1
0
    public static void Hurt(ClassEarth classEarth)
    {
        GameObject camera = GameObject.Find("Game Camera/Effect");

        BehaviourAnimation.Play(classEarth.gameObject, "Hurt");
        BehaviourAnimation.Play(camera, "Hurt");

        BehaviourSound.Play("SFX/Explosion");

        Camera.main.GetComponent <Shaker>().Shake(40f, 1);
    }
Exemple #2
0
 public ControllerEarth()
 {
     classEarth = GameObject.Find("Earth").GetComponent <ClassEarth>();
     classEarth.controllerEarth = this;
 }
Exemple #3
0
 public override void TrackObject(GameObject gameObject)
 {
     classEarth = gameObject.GetComponent <ClassEarth>();
     classEarth.controllerEarth = this;
 }