Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (Constance.SPEC_RUNNING == false && Constance.RUNNING == false)
        {
            return;
        }
        else if (Constance.SPEC_RUNNING == true && this.specSign == false)
        {
            return;
        }

        if (teleport != null)
        {
            if (teleport.IsEnd() == true)
            {
                Destroy(teleport.gameObject);
                teleport = null;
                this.charModel.Play();
                this.charModel.gameObject.SetActive(true);
                this.hpBar.gameObject.SetActive(true);
            }

            return;
        }

        this.UpdateState();

        if (this.dead == true)
        {
            return;
        }

        this.TryMove();
        this.SortY();
        this.TryAttack();
    }
Exemple #2
0
 public bool IsSpritePlayEnd()
 {
     return(spriteAnimation.IsEnd());
 }