Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     currentWeapon.SetOwner(this);
 }