Exemplo n.º 1
0
 private void Start()
 {
     if (sys)
     {
         sys.LoadPlayer();
     }
     WeaponIndex = 0;
     if (Weapons.thisList.Count > 0 && CurrentWeapon)
     {
         CurrentWeapon.sprite = Weapons.thisList[WeaponIndex].GetComponent <MagicCast>().ThisItem.ItemImage;
         Vector4 temp = CurrentWeapon.color;
         temp.w += 1;
         CurrentWeapon.color = temp;
         IsInitialized       = true;
     }
     Body     = GetComponent <Rigidbody2D>();
     Animator = GetComponent <Animator>();
     CurrentHealth.RuntimeValue = CurrentHealth.InitialValue;
     PlayerHealthSignal.Raise();
 }