Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (ufoAction != null && ufoAction.isActionEnd())
     {
         ufoAction.after();
         ufoAction = ufoAction.exchangeNextScript(ufo);
         Debug.Log("next action");
     }
 }
Ejemplo n.º 2
0
    public void moveLeft()
    {
        if (isWait())
        {
            destroyUFOActions(ufo);
            destroyUFOActions(GameObject.Find("RightArm"));
            destroyUFOActions(GameObject.Find("LeftArm"));

            ufo.AddComponent <UFOLeftMover>();
            ufoAction = ufo.GetComponent <UFOLeftMover>();
        }
    }