Beispiel #1
0
    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());
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     Qbert            = GameObject.FindGameObjectWithTag("Player").GetComponent <QbertScript>();
     animator         = gameObject.GetComponent <Animator>();
     animator.enabled = false;
 }
Beispiel #3
0
 public void DestroyAnimation()
 {
     QbertScript.Move();
     Destroy(gameObject);
 }