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

            action.gameobject = gameObject;
            action.startPos   = gameObject.transform.position;
            action.callback   = _callback;
            return(action);
        }
Ejemplo n.º 2
0
 public void SSActionEvent(SSAction source,
                           SSActionEventType events = SSActionEventType.Competeted,
                           int intParam             = 0,
                           string strParam          = null)
 {
     runSequence.Remove(source);
     if (events == SSActionEventType.Unfinish)
     {
         SSAction action = ArrowShakeAction.GetSSAction(source.gameobject, this);
         addAction(action);
     }
     else if (events == SSActionEventType.Reload)
     {
         this.callback.SSActionEvent(source);
     }
 }
Ejemplo n.º 3
0
        public void shake(GameObject arrow)
        {
            SSAction action = ArrowShakeAction.GetSSAction(arrow, this);

            addAction(action);
        }