コード例 #1
0
    protected override void Update()
    {
        base.Update();

        if (action1 == null || action2 == null)
        {
            return;
        }

        if (action1.CheckDistance() && action2.CheckDistance())
        {
            action1.Paused = false;
            action2.Paused = false;
        }
        else
        {
            action1.Paused = true;
            action2.Paused = true;
        }
    }