Ejemplo n.º 1
0
 private void Start()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
     AblityLocal = GameObject.Find("Ablity");
 }
Ejemplo n.º 2
0
 private void Start()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
     ablityController       = GetComponent <AblityController>();
     playerWeaponController = GetComponent <PlayerWeaponController>();
     consumableController   = GetComponent <ConsumableController>();
     GiveItem("sword");
     GiveItem("staff");
     //GiveItem("Gun");
     GiveItem("potion_log");
     GiveItem("firestaff");
     GiveItem("fire_Arround_mod");
     GiveItem("Flash");
 }