Пример #1
0
 void Start()
 {
     TickTimeTimer.OnTick += OnTick;
     laser = GameManager.instance.laser;
     weaponController.projectileSpawns = laserPositions;
     weaponController.ChangeWeapon(WeaponList.weaponDictionary[laser.currentWeapon.weaponName].weapon_Function);
 }
Пример #2
0
    // Use this for initialization
    void Awake()
    {
        #region Instance
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);
        #endregion

        #region Set Code/Objects

        laser         = GetComponent <PlayerWeaponInventory>();
        loot          = GetComponent <LootManager>();
        frikinHealth  = GetComponent <PlayerHealthController>();
        scoringCode   = GetComponent <Parker_Scoring>();
        setAudio      = GetComponent <CS_SetAudioLevel>();
        respawnScript = GetComponent <RS_RespawnScript>();


        #endregion

        tickTimer = 0f;
    }
Пример #3
0
    protected override void Awake()
    {
        base.Awake();

        this.playerWeaponInventory = GetComponent <PlayerWeaponInventory>();
        this.cam  = Camera.main;
        this.body = tr.Find("Body");
    }