Example #1
0
 void Start()
 {
     wb         = FindObjectOfType <WeaponBench>();
     fwanimator = GameObject.FindGameObjectWithTag("FadeWall").GetComponent <Animator>();
     altar      = FindObjectOfType <Altar>();
     //resUnit = altar.GetResUnit();
     ic            = FindObjectOfType <InputController>();
     weaponmanager = FindObjectOfType <WeaponManager>();
     sc            = FindObjectOfType <SpawnController>();
     aso           = gameObject.GetComponent <AudioSource>();
     sl            = FindObjectOfType <SoundLibrary>();
     statl         = FindObjectOfType <StatLibrary>();
     unit          = gameObject.GetComponent <Unit>();
     unit.SetDeadClip(sl.GetPlayerDead());
     ownedWeaponGOs = new List <GameObject>();
     previousWeapon = FindObjectOfType <PlayerWeapon>().name;
     ownedWeaponGOs.Add(sc.provideGameObject("BoneBag"));
 }