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); }
public ControllerEarth() { classEarth = GameObject.Find("Earth").GetComponent <ClassEarth>(); classEarth.controllerEarth = this; }
public override void TrackObject(GameObject gameObject) { classEarth = gameObject.GetComponent <ClassEarth>(); classEarth.controllerEarth = this; }