public void RotateGhost() { if (GhostObject != null) { GhostScript ghostScript = GhostObject.GetComponent <GhostScript>(); ghostScript.Rotate(); } }