Exemple #1
0
 private void OnTriggerStay(Collider other)
 {
     if (other.GetComponent <Photon.Pun.PhotonView>().IsMine&& Input.GetKey("f"))
     {
         FloatingNotification.float_notify("+1 <color=" + oreColor + ">" + oreName + " </color>",
                                           transform.position + new Vector3(0f, 2f, 0f));
         StartCoroutine(MineNode());
     }
 }
        public void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)
        {
            if (scene.name == "MenuCore")
            {
                FloatingNotification.Create();

                if (ButtonUI.Instance == null)
                {
                    new GameObject("BSIPA Mod List Object").AddComponent <ButtonUI>().Init();
                }
            }
        }
Exemple #3
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.transform.name.Contains("PLAYER"))
     {
         if (other.gameObject.GetComponent <PhotonView>().IsMine)
         {
             gemSound.Play();
             FloatingNotification.float_notify("+ 1 " + LocalStats.gemNames[gemIndex], transform.position);
             LocalStats.gems[gemIndex]++;
         }
         else
         {
             otherSound.Play();
         }
         StartCoroutine(PauseGem());
     }
 }