///<summary>Spawn the object (Player, PNJ, etc.) on a SpawnPoint that is currently hostile. Close to ennemies, but far from allies (if possible)</summary> public void Spawn_Hostile(SpawnUser a_UserToSpawn) { if (!SpawnManager_IsInit(true)) { return; } }
///<summary>Spawn the object (Player, PNJ, etc.) next to an object of the same team. Spawn for the safest one</summary> public void Spawn_OnTeam(SpawnUser a_UserToSpawn) { if (!SpawnManager_IsInit(true)) { return; } }
///<summary>Spawn the object (Player, PNJ, etc.) on a SpawnPoint that is set as Initialisation Spawn. Use to spawn object at a specific position the first time they appear in game.</summary> public void Spawn_InitGame(SpawnUser a_UserToSpawn) { if (!SpawnManager_IsInit(true)) { return; } eSpawnM_Teams userTeam = a_UserToSpawn.GetUserTeam(); for (int i = 0; i < m_Spawns.Count; i++) { if (m_Spawns[i].CanUseForInitSpawn(userTeam)) { a_UserToSpawn.transform.position = m_Spawns[i].transform.position; a_UserToSpawn.transform.rotation = m_Spawns[i].transform.rotation; a_UserToSpawn.transform.gameObject.SetActive(true); } } }