Пример #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (block == null)
     {
         //hasnt started yet
         return;
     }
     Game.Player.PlayerController pc = collision.gameObject.GetComponent <PlayerController>();
     if (pc != null)
     {
         block.trigger(pc);
     }
 }
Пример #2
0
 internal abstract void trigger(Game.Player.PlayerController pc);
Пример #3
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     Game.Player.PlayerController pc = collision.gameObject.GetComponent <Game.Player.PlayerController>();
     block.untrigger(pc);
 }
Пример #4
0
 /// <summary>
 /// アイテムを取得したときに得られるアイテム効果
 /// (処理を書いてください)
 /// </summary>
 protected virtual void GetItemSelf(Game.Player.PlayerController player)
 {
 }