コード例 #1
0
 //Erase the current letter
 public void EraseLetter(Object ob)
 {
     if (writingHandler == null)
     {
         return;
     }
     writingHandler.RefreshProcess();
 }
コード例 #2
0
 public override void Update()
 {
     pointLionVector3    = new Vector3(CommonData.prefabs.gameobjectLookup[StringConstants.PrefabCheckPointLion].transform.position.x, 0, CommonData.prefabs.gameobjectLookup[StringConstants.PrefabCheckPointLion].transform.position.z);
     pointARCamerVector3 = new Vector3(CommonData.prefabs.gameobjectLookup[StringConstants.ARCamera].transform.position.x, 0, CommonData.prefabs.gameobjectLookup[StringConstants.ARCamera].transform.position.z);
     if (!complete && Vector3.Distance(pointLionVector3, pointARCamerVector3) > 0.5f)
     {
         Debug.Log("Shark");
         //  CommonData.mainManager.stateManager.SwapState(new CheckLion());
     }
     if (!CommonData.StateLion)
     {
         currentTime += Time.deltaTime;
         if (currentTime >= time && !WrHandler.clickStarted)
         {
             currentTime = 0;
             CheckTime();
             if (WrHandler != null)
             {
                 WrHandler.RefreshProcess();
             }
         }
     }
 }