コード例 #1
0
ファイル: GamePlayer.cs プロジェクト: l0stfake7/MSCMP
        /// <summary>
        /// Handle drop of the object.
        /// </summary>
        private void DropObject()
        {
            Logger.Log("Drop object " + pickedUpGameObject);
            pickedUpGameObject = null;

            if (GameCallbacks.onObjectRelease != null)
            {
                GameCallbacks.onObjectRelease(true);
            }
        }
コード例 #2
0
ファイル: GamePlayer.cs プロジェクト: l0stfake7/MSCMP
        /// <summary>
        /// Handle throw of the object.
        /// </summary>
        private void ThrowObject()
        {
            Logger.Log("Throwed object " + pickedUpGameObject);
            pickedUpGameObject = null;

            if (GameCallbacks.onObjectRelease != null)
            {
                GameCallbacks.onObjectRelease(false);
            }
        }