public void SetCornerCodeButtonSize(float ccButtonSize) { if (cornerCodes == null) { cornerCodes = gameObject.AddComponent <CornerCodeHelper>(); } cornerCodes.SetButtonSize(ccButtonSize); }
public void SetCornerCodeButtonColor(Color c) { if (cornerCodes == null) { cornerCodes = gameObject.AddComponent <CornerCodeHelper>(); } cornerCodes.SetColor(c); }
public void SetCornerCodeTimeoutSeconds(float ccTimeoutSeconds) { if (cornerCodes == null) { cornerCodes = gameObject.AddComponent <CornerCodeHelper>(); } cornerCodes.SetTimeoutSeconds(ccTimeoutSeconds); }
/// <summary> /// Adds a Code Sequence as the top overlay so that when the corners of the screen are pressed in a certain order, the application performs an Action. /// 1 - Top-Left /// 2 - Top-Right /// 3 - Bottom-Left /// 4 - Bottom-Right /// </summary> /// <param name="newCode">the triggering code</param> /// <param name="codeAction">the Action to trigger</param> public void AddCornerCode(string newCode, Action codeAction) { if (cornerCodes == null) { cornerCodes = gameObject.AddComponent <CornerCodeHelper>(); } cornerCodes.AddCornerCode(newCode, codeAction); }