コード例 #1
0
    protected override void Conditions()
    {
        float fullTime = Mathf.Clamp(flightControll.GetFullTime(), 0, timeRequired);

        if (fullTime != lastTime)
        {
            MyAction(fullTime);
        }

        lastTime = fullTime;

        if (fullTime == timeRequired)
        {
            SetJustComplete();
        }
    }