// Use this for initialization void Start() { animator = GetComponent <Animator>(); PlayerRigidbody = GetComponent <Rigidbody2D>(); StreamAnimFire = playerFireShot.GetComponent <StreamAttackAnimationFire>(); StreamAnimWater = playerWaterShot.GetComponent <StreamAttackAnimationWater>(); gameObject.transform.GetChild(5).gameObject.SetActive(true); HealTextPopup.Initialize(); BuffTimer = MaxBuffTime; BuffCollider.enabled = false; if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.Android) { onMobile = true; } else { onMobile = false; } }
private void DisplayHeal(float amount) { HealTextPopup.CreateFloatingText("+" + (Math.Truncate((decimal)(amount))).ToString(), this.transform); }