Пример #1
0
    public PhysicsMoveToAction ApplyMoveToAction(GameObject obj, float speed)
    {
        PhysicsMoveToAction temp = PhysicsMoveToAction.GetSSAction(speed);

        base.RunAction(obj, temp, this);
        return(temp);
    }
Пример #2
0
    public static PhysicsMoveToAction GetSSAction(float _speed)
    {
        PhysicsMoveToAction act = ScriptableObject.CreateInstance <PhysicsMoveToAction> ();

        act.speed          = _speed;
        act.originPosition = SSAction.getRandomStartPoint();
        return(act);
    }
Пример #3
0
    public PhysicsMoveToAction ApplyMoveToAction(GameObject obj, float speed)
    {
        PhysicsMoveToAction action = PhysicsMoveToAction.GetSSAction(speed);

        base.RunAction(obj, action, this);

        return(action);
    }