Ejemplo n.º 1
0
 public void LoadData()
 {
     JsonLoader.LoadData();
     AmmoDonovan          = new Ammo();
     ShootAttack          = JsonLoader.attacks.DistanceAttacks[indexGun];
     instance             = Arms.transform.parent.gameObject;
     MeInThis             = instance.GetComponent <Human>();
     TempField            = FieldOfFire;
     Shootangle           = angle;
     viewShootAngle       = DirFromAngle(Shootangle, false);
     MaxIntense           = ShootLight.intensity;
     ShootLight.intensity = 0;
     //PC = Donovan.GetComponent<Playercontroller>();
     AmmoDonovan.TotalAmmo = TotalAmmo;
     AmmoDonovan.AmmoInMag = ShootAttack.Magazine;
     ArmsAnim = Arms.GetComponent <Animator>();
     Shoot    = MeInThis.StateInfo.Shooting;
 }
Ejemplo n.º 2
0
 internal static LogFile LoadLogFile()
 {
     return(JsonLoader.LoadData <LogFile>(Constants.LogFilePath));
 }
Ejemplo n.º 3
0
 void Awake() {
     JsonLoader.LoadData();
     Attack = JsonLoader.attacks.MeeleAttacks[indexAttack];
 }