public override void StartScript(CubeObjectScript Cube) { if (coily == null) { coily = this; } else if (coily != this) { Destroy(gameObject); } base.StartScript(Cube); qbert = GameObject.FindGameObjectWithTag("Player").GetComponent <QbertScript>(); CoilyMesh = GameObject.FindGameObjectWithTag("CoilyMesh"); destinationCube = qbert.CurrentCube; BFS(currentCube, qbert.CurrentCube); StartCoroutine(Routine()); }
// Use this for initialization void Start() { Qbert = GameObject.FindGameObjectWithTag("Player").GetComponent <QbertScript>(); animator = gameObject.GetComponent <Animator>(); animator.enabled = false; }
public void DestroyAnimation() { QbertScript.Move(); Destroy(gameObject); }