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; } }
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(); } }