Exemplo n.º 1
0
 public void Bind(Positioning playerPos)
 {
     if (!m_Init)
     {
         Init();
     }
     playerPos.Position
     .Subscribe((pos) => m_TF.position = pos)
     .AddTo(this);
     playerPos.Rotation
     .Subscribe((rot) => m_TF.rotation = rot)
     .AddTo(this);
 }
 public PlayerMovementController SetPlayer(Info info)
 {
     m_Player      = info;
     m_Positioning = info.Positioning;
     return(this);
 }