コード例 #1
0
ファイル: TestMovable.cs プロジェクト: Sirithang/MultiFPS
    private void OnEnable()
    {
        _navmeshAgent = GetComponent <NavMeshAgent>();
        _collider     = GetComponent <Collider>();

        ServerSimulation.RegisterObject(this);
        ServerSimulation.StartTrackingCollider(_collider);
    }
コード例 #2
0
 public override void OnStartServer()
 {
     ServerSimulation.RegisterObject(this);
 }