Esempio n. 1
0
 public void SetCornerCodeButtonSize(float ccButtonSize)
 {
     if (cornerCodes == null)
     {
         cornerCodes = gameObject.AddComponent <CornerCodeHelper>();
     }
     cornerCodes.SetButtonSize(ccButtonSize);
 }
Esempio n. 2
0
 public void SetCornerCodeButtonColor(Color c)
 {
     if (cornerCodes == null)
     {
         cornerCodes = gameObject.AddComponent <CornerCodeHelper>();
     }
     cornerCodes.SetColor(c);
 }
Esempio n. 3
0
 public void SetCornerCodeTimeoutSeconds(float ccTimeoutSeconds)
 {
     if (cornerCodes == null)
     {
         cornerCodes = gameObject.AddComponent <CornerCodeHelper>();
     }
     cornerCodes.SetTimeoutSeconds(ccTimeoutSeconds);
 }
Esempio n. 4
0
 /// <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);
 }