SkillBase.Update C# (CSharp) Метод

Update() публичный Метод

public Update ( ) : void
Результат 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

Пример #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();
        }
    }