Exemplo n.º 1
0
    private void Awake()
    {
        player   = FindObjectOfType <CurrentPlayerComponentData>();
        weaponDB = FindObjectOfType <WeaponDB>();
        // range of powerup gun



        //powerupGunNumber = Random.Range(2, 3);
    }
Exemplo n.º 2
0
        void Start()
        {
            if (!currentPlayer.setManually)
            {
                currentPlayer.maxHealth     = 100;
                currentPlayer.currentHealth = 50;
            }

            playerWeapon = GetComponent <CurrentPlayerComponentData>();

            playerDatabase = FindObjectOfType <PlayerDatabase>();



            SetPlayer(0);
        }
Exemplo n.º 3
0
 private void Awake()
 {
     playerWeapon = FindObjectOfType <CurrentPlayerComponentData>();
 }
Exemplo n.º 4
0
 private void Awake()
 {
     playerStats = FindObjectOfType <PlayerStats>();
     player      = playerStats.GetComponent <CurrentPlayerComponentData>();
 }