private void Disperse(Vase vase) { var heading = vase.transform.position - transform.position; var distance = heading.magnitude; var direction = heading / distance; var farOffPoint = direction * 20; vase.MoveOut(farOffPoint); }
private void Choose(Vase vase) { gameManager.ChoseVase(vase.vaseType); GetComponent <VasesAnimation>().AnimateChosenVase(vase.transform); var mover = GetComponent <VaseMover>(); mover.movingVase = vase.transform; mover.enabled = true; enabled = false; }
public static void DestroyAllDeviceObjects() { Brick.DestroyDeviceObjects(); Vase.DestroyDeviceObjects(); Reflective.DestroyDeviceObjects(); }
public static void FlushAll(CommandList cl) { Brick.FlushChanges(cl); Vase.FlushChanges(cl); Reflective.FlushChanges(cl); }
public static void CreateAllDeviceObjects(GraphicsDevice gd, CommandList cl, SceneContext sc) { Brick.CreateDeviceObjects(gd, cl, sc); Vase.CreateDeviceObjects(gd, cl, sc); Reflective.CreateDeviceObjects(gd, cl, sc); }
public VaseAdapter(Vase vase) { this.vase = vase; this.observable = new Observerable(this); }