FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

README.mdPlay by prathmeshbhosle1617-ops · Pull Request #37 · Unity-Technologies/UnityCsReference · GitHub

README.mdPlay - #37

Open
prathmeshbhosle1617-ops wants to merge 3 commits into
Unity-Technologies:masterfrom
prathmeshbhosle1617-ops:patch-1
Open

README.mdPlay#37
prathmeshbhosle1617-ops wants to merge 3 commits into
Unity-Technologies:masterfrom
prathmeshbhosle1617-ops:patch-1

Conversation

Copy link
Copy Markdown

using UnityEngine;
using UnityEngine.UI;

public class GiftFall : MonoBehaviour
{
public float fallSpeed = 2.0f;
public GameObject sparkleEffect;
public Text messageText;

private bool hasLanded = false;

void Start()
{
    messageText.text = "Raksha Bandhan Gift Coming...";
}

void Update()
{
    if (!hasLanded)
    {
        transform.position += Vector3.down * fallSpeed * Time.deltaTime;

        if (transform.position.y <= 0.5f)
        {
            hasLanded = true;
            Instantiate(sparkleEffect, transform.position, Quaternion.identity);
            messageText.text = "Gift Arrived! 💝";
        }
    }
}

}

Unity Technologies and others added 3 commits May 29, 2025 09:29
using UnityEngine;
using UnityEngine.UI;

public class GiftFall : MonoBehaviour
{
    public float fallSpeed = 2.0f;
    public GameObject sparkleEffect;
    public Text messageText;

    private bool hasLanded = false;

    void Start()
    {
        messageText.text = "Raksha Bandhan Gift Coming...";
    }

    void Update()
    {
        if (!hasLanded)
        {
            transform.position += Vector3.down * fallSpeed * Time.deltaTime;

            if (transform.position.y <= 0.5f)
            {
                hasLanded = true;
                Instantiate(sparkleEffect, transform.position, Quaternion.identity);
                messageText.text = "Gift Arrived! 💝";
            }
        }
    }
}

qingshu commented Aug 2, 2025 via email

Copy link
Copy Markdown

prathmeshbhosle1617-ops commented Aug 2, 2025 via email

Copy link
Copy Markdown
Author

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL