slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

SelectOnAwake.cs (476B)


      1 using System.Collections;
      2 using System.Collections.Generic;
      3 using UnityEngine;
      4 using UnityEngine.EventSystems;
      5 
      6 public class SelectOnAwake : MonoBehaviour
      7 {
      8     public EventSystem events;
      9     private void OnEnable()
     10     {
     11         events.SetSelectedGameObject(gameObject);
     12         //(StandaloneInputModule)events.currentInputModule
     13         StandaloneInputModule yourmom=(StandaloneInputModule)events.currentInputModule;
     14         yourmom.submitButton = "GlobalStart";
     15     }
     16 }