示例#1
0
    void Start()
    {
        playerID         = GetComponent <PlayerProperties>().playerID;
        playerObj        = gameObject;
        playerMovement   = GetComponent <PlayerMovement>();
        playerShooting   = GetComponent <PlayerShooting>();
        playerBuilding   = GetComponent <PlayerBuilding>();
        runtimeVariables = RuntimeVariables.GetInstance();
        pauseManager     = GameObject.Find("SceneManager").GetComponent <PauseManager>();

        audioManager.StopFirewallBuildingSound();
        SetupControls();
        SetupComputers();
    }