public void Spawn(NpcAccessPoint spawnPoint) { switch (spawnPoint.type) { case NpcAccessPoint.AccessPointType.Warp: if (_warpDrive == null) { _warpDrive = GetComponent<AIWarpDrive>(); } _warpDrive.EnterFromWarp(transform.position, transform.rotation); break; default: break; } }
public void Spawn(NpcAccessPoint spawnPoint) { switch (spawnPoint.type) { case NpcAccessPoint.AccessPointType.Warp: if (_warpDrive == null) { _warpDrive = GetComponent <AIWarpDrive>(); } _warpDrive.EnterFromWarp(transform.position, transform.rotation); break; default: break; } }
void Awake() { _warpDrive = GetComponent <AIWarpDrive>(); }
void Awake() { _warpDrive = GetComponent<AIWarpDrive>(); }