コード例 #1
0
ファイル: Agent.cs プロジェクト: SinanEmiroglu/GatherBot
    void Update()
    {
        if (currentStatus == null)
        {
            return;
        }

        var nextStatus = currentStatus?.OnUpdate();

        if (nextStatus != null && nextStatus != currentStatus?.GetType())
        {
            SwitchStatus(nextStatus);
        }
    }