Пример #1
0
 public RegionManager GetRegionManager()
 {
     if (regionManager == null)
     {
         regionManager = RegionManager.GetMyRegionManager(gameObject);
     }
     return(regionManager);
 }
Пример #2
0
    void Start()
    {
        //throws a LogError if no region manager
        RegionManager.GetMyRegionManager(gameObject);

        GetRigidbody().velocity = startVelocity;
        GetRigidbody().mass     = mass;
    }