Exemplo n.º 1
0
 public void SSActionEvent(SSAction source, GameObject arrow = null)
 {
     if (arrow != null)
     {
         ArrowTremble tremble = ArrowTremble.GetSSAction();
         this.RunAction(arrow, tremble, this);
     }
     else
     {
         Controllor scene_controller = (Controllor)SSDirector.GetInstance().CurrentSceneControllor;
     }
 }
Exemplo n.º 2
0
 public void SSActionEvent(SSAction source, GameObject arrow = null)
 {
     //vibration
     if (arrow != null)
     {
         ArrowTremble tremble = ArrowTremble.GetSSAction();
         this.RunAction(arrow, tremble, this);
     }
     else
     {
         //reduce arrow
         FirstSceneController scene_controller = (FirstSceneController)SSDirector.GetInstance().CurrentScenceController;
         scene_controller.CheckGamestatus();
     }
 }
Exemplo n.º 3
0
    public static ArrowTremble GetSSAction()
    {
        ArrowTremble action = CreateInstance <ArrowTremble>();

        return(action);
    }