Exemple #1
0
    // 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;
        }
    }
Exemple #2
0
 private void DisplayHeal(float amount)
 {
     HealTextPopup.CreateFloatingText("+" + (Math.Truncate((decimal)(amount))).ToString(), this.transform);
 }