예제 #1
0
 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;
     }
 }
예제 #2
0
    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;
        }
    }
예제 #3
0
 void Awake()
 {
     _warpDrive = GetComponent <AIWarpDrive>();
 }
예제 #4
0
 void Awake()
 {
     _warpDrive = GetComponent<AIWarpDrive>();
 }