public void SetPromptsPlatform(InputPlatform platform) { UIPromptsInfo info = mPromptsInfo.Find(x => x.Platform == platform); if (info != null) { mCurrentPromptsInfo = info; } }
public override void Init(GlobalController controller) { base.Init(controller); InputPlatform[] platforms = GetComponentsInChildren <InputPlatform>(); for (int i = 0; i < platforms.Length; i++) { if (Application.platform == platforms[i].GetPlatform()) { currentInput = platforms[i]; RemoveOtherPlatforms(platforms, Application.platform); platforms = null; break; } } currentInput.Init(this); isInitialized = true; }