示例#1
0
 public void Step2() // initiate waterArrows, butterfly fly away, open water spell,stop baby,set camera
 {
     waterTutorialArrows.SetActive(true);
     controlUI.SetActive(true);
     spellPos.SetSpellPoint(spellPos.tempPos);
     Camera.main.GetComponent <MainCamCon>().target = waterTutorialArrows.transform;
     Camera.main.GetComponent <MainCamCon>().Zoom(10f);
     babyMoveCon.StopMovement(true);
     skillCaster.waterOn = true;
     butterflyCon.ToEndPoint();
 }
 void Shoot()
 {
     //moveCon.des = target;
     //moveCon.StopMovement(true);
     moveCon.StopMovement(true);
     ani.CastMagic(true);
     //Debug.Log("AA");
 }
    public void CastFinished() //need to be used in animation!!!
    {
        if (arrowStartPoint.childCount > 0)
        {
            arrowStartPoint.GetChild(0).parent = null;
        }

        ani.CastMagic(false);
        firePorjection.shooted = false;
        moveCon.StopMovement(false);
        //moveCon.enabled = true;
        moveCon.des = randomPos;
        //Debug.Log("aa");
    }