Exemple #1
0
 public void SSActionEvent(SSAction source, int intParam = 0, GameObject objectParam = null)
 {
     if (intParam == 0)
     {
         SpiderFollowAction follow = SpiderFollowAction.GetSSAction(objectParam.gameObject.GetComponent <SpiderData>().player);
         this.RunAction(objectParam, follow, this);
     }
     else
     {
         GoSpiderAction move = GoSpiderAction.GetSSAction(objectParam.gameObject.GetComponent <SpiderData>().start_position);
         this.RunAction(objectParam, move, this);
         Singleton <GameEventManager> .Instance.PlayerEscape();
     }
 }
Exemple #2
0
 public void GoSpider(GameObject spider)
 {
     go_spider = GoSpiderAction.GetSSAction(spider.transform.position);
     this.RunAction(spider, go_spider, this);
 }