fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.1s 54596KB
stdin
using UnityEngine;
using UnityEngine.SceneManagement;  // لاستخدام المشاهد في Unity
using UnityEngine.UI;  // لاستخدام الواجهة النصية

public class GameManager : MonoBehaviour
{
    public float moveSpeed = 5f;  // سرعة حركة الشخصية
    public Text contactInfoText;  // مكان عرض المعلومات (UI)
    public GameObject player;     // الشخصية (مصباح وليد)

    // التنقل بين الألعاب (المشاهد)
    public void StartGame(string sceneName)
    {
        SceneManager.LoadScene(sceneName);
    }

    // كود حركة الشخصية باستخدام الأسطر أو WASD
    void Update()
    {
        if (player != null)
        {
            float horizontal = Input.GetAxis("Horizontal");
            float vertical = Input.GetAxis("Vertical");
            Vector3 moveDirection = new Vector3(horizontal, 0, vertical);
            player.transform.Translate(moveDirection * moveSpeed * Time.deltaTime, Space.World);
        }
    }

    // عرض معلومات الاتصال (واتساب، إنستغرام، فيسبوك)
    public void ShowContactInfo()
    {
        if (contactInfoText != null)
        {
            contactInfoText.text = "المطور: مصباح وليد\nرقم الهاتف: 01040428382\nInstagram: @msbhmsbhwlyd\nFacebook: [رابط]";
        }
    }

    // فتح رابط الواتساب عند الضغط على زر
    public void OpenWhatsApp()
    {
        Application.OpenURL("https://content-available-to-author-only.me/201040428382");
    }
}
stdout
Standard output is empty