SkillBase.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    public void Update()
    {
        if (IsEnd)
            return;

        if (DoSkill())
            if (DoFx())
                if (End())
                {
                    skEnd = true;
                }
        demoCount++;
        Debug.Log(this.skID.ToString() + " skilling ~" + demoCount.ToString());
    }

Usage Example

Ejemplo n.º 1
0
    // Update is called once per frame
    public void Update()
    {
        if (!Stop)
        {
            timepoint += Time.deltaTime;

            if (currentSkill != null)
            {
                if (currentSkill.isEnd)
                {
                    if (!currentSkill.isBigSkill)
                    {
                        AddCooding();
                    }
                }
                else
                {
                    currentSkill.Update(timepoint);
                }
            }

            CoodingUpdate();
        }
    }