void Start() { Rigidbody = GetComponent <Rigidbody>(); currentWeapon.SetOwner(this); if (teamType == Team.Type.RED) { enemySpawnLocation = TeamManager.Instance.GetBlueTeam().spawnPoint.transform.position; spawnLocation = TeamManager.Instance.GetRedTeam().spawnPoint.transform.position; } else if (teamType == Team.Type.BLUE) { enemySpawnLocation = TeamManager.Instance.GetRedTeam().spawnPoint.transform.position; spawnLocation = TeamManager.Instance.GetBlueTeam().spawnPoint.transform.position; } }
void Start() { currentWeapon.SetOwner(this); }