// Use this for initialization
 void Start()
 {
     audioSync       = GetComponent <Audio_Sync>();
     variablesScript = GetComponent <variables>();
     playerGUIScript = GetComponent <Player_GUI>();
     //fireDelay = variablesScript.fireDelay;
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        audioSync         = GetComponent <Audio_Sync>();
        playerPauseScirpt = GetComponent <Player_Pause>();
        //engineParent = transform.Find("Engines").gameObject;
        healthScript     = GetComponent <Player_Health>();
        variablesScript  = GetComponent <variables>();
        playerChatScript = GetComponent <Player_Chat>();
        playerIDScript   = GetComponent <Player_ID>();

        healthScript.EventDie += DisablePlayer;         //Subscribes it to the EventDie
    }
Esempio n. 3
0
    //public GameObject hit_prefab;

    //public bool[] projectileTaken;


    // Use this for initialization
    void Start()
    {
        audioSync = GetComponent <Audio_Sync>();
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     shipControlScript = GetComponent <ShipControl>();
     variablesScript   = GetComponent <variables>();
     audioSync         = GetComponent <Audio_Sync>();
 }