Ejemplo n.º 1
0
        public static PlayerMoveAction GetSSAction(GameObject gameObject, float _TranslationX, float _TranslationY, ISSActionCallback _callback)
        {
            PlayerMoveAction action = ScriptableObject.CreateInstance <PlayerMoveAction>();

            action.TranslationX = _TranslationX;
            action.TranslationY = _TranslationY;
            action.gameobject   = gameObject;
            action.transform    = gameObject.transform;
            action.callback     = _callback;

            return(action);
        }
Ejemplo n.º 2
0
        public void MovePlayer(GameObject gameobj, float TranslationX, float TranslationY)
        {
            SSAction action = PlayerMoveAction.GetSSAction(gameobj, TranslationX, TranslationY, this);

            addAction(action);
        }