void Start() { TickTimeTimer.OnTick += OnTick; laser = GameManager.instance.laser; weaponController.projectileSpawns = laserPositions; weaponController.ChangeWeapon(WeaponList.weaponDictionary[laser.currentWeapon.weaponName].weapon_Function); }
// 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; }
protected override void Awake() { base.Awake(); this.playerWeaponInventory = GetComponent <PlayerWeaponInventory>(); this.cam = Camera.main; this.body = tr.Find("Body"); }