Exemple #1
0
 void Start()
 {
     multishot            = MaxMultiShot;
     weaponsSystems       = GameObject.Find("PlayerWeaponSpawner").GetComponent <Player_Weapons_V2>();
     UI_Main              = GameObject.Find("UI").GetComponent <UI_Main>();
     PlayerLives          = 3;
     PlayerLivesMasterObj = GameObject.Find("PlayerLives");
     StartCoroutine(PlayerLifeGenerator());
     PlayerBrain = false;
     BeamLaser   = false;
 }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
//        if (gameObject.name == "FireButton")
        PlayerWeapons       = GameObject.FindWithTag("PlayerWeaponSpawner");
        PlayerWeaponsScript = PlayerWeapons.gameObject.GetComponent <Player_Weapons_V2>();
        touchXLower         = Background.position.x - ((Background.sizeDelta.x / 2) + TouchLimiter);
        touchXUpper         = Background.position.x + ((Background.sizeDelta.x / 2) + TouchLimiter);

        touchYLower = Background.position.y - (Background.sizeDelta.y / 2) - TouchLimiter;
        touchYUpper = Background.position.y + ((Background.sizeDelta.y / 2) + TouchLimiter);
    }