Пример #1
0
 private void SetPlayer()
 {
     if (m_Player == null)
     {
         BaseActorObj actor = Resources.Load <BaseActorObj>("Prefab/Character/Player");
         m_Player = GameObject.Instantiate(actor as PlayerObj);
     }
 }
Пример #2
0
 public void PutPlayer(PlayerObj player)
 {
     m_Player = player;
 }