Skip to content

Instantly share code, notes, and snippets.

View webmonch's full-sized avatar

Vladyslav Melnychenko webmonch

View GitHub Profile
// Updated method in PhotonTransformViewRotationControl.cs
public void OnPhotonSerializeView( Quaternion currentRotation, PhotonStream stream, PhotonMessageInfo info )
{
if( m_Model.SynchronizeEnabled == false )
{
return;
}
if( stream.isWriting == true )
{
@webmonch
webmonch / ResizeReorderableListExample.cs
Created October 9, 2016 21:38 — forked from PostEpoch/ResizeReorderableListExample.cs
Resize Unity Reorderable List example.
// Originally from MALQUA
// https://feedback.unity3d.com/suggestions/custom-element-size-in-reorderable-list
// http://i.imgur.com/fIbBorr.gifv
// and SOCAPEX
// https://gist.github.com/Socapex/1d9b45507464681d530b
// Modified by Jesse Hamburger
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
https://www.dropbox.com/s/1qefqafi33pfqfy/TCG%20Build%201.zip?dl=0
protected override int _add(VirtualItem item, int amount, bool notify){
Debug.Log("To notify? " + notify);
int retBalance;
AndroidJNI.PushLocalFrame(100);
using(AndroidJavaClass jniStorageManager = new AndroidJavaClass("com.soomla.store.data.StorageManager")) {
using(AndroidJavaObject jniVCStorage = jniStorageManager.CallStatic<AndroidJavaObject>("getVirtualCurrencyStorage")) {
Debug.Log(">>>>>>>>before call");
retBalance = jniVCStorage.Call<int>("add", item.ItemId, amount, notify);
Debug.Log(">>>>>>>>after call");
}
03-26 00:46:18.871 18592-18592/? D/wpa_supplicant﹕ nl80211: survey data missing!
03-26 00:46:18.872 450-532/? I/WifiStateMachine﹕ fetchRssiAndLinkSpeedNative, newRssi:-42, newLinkSpeed:65
03-26 00:46:18.872 450-532/? D/StateMachine﹕ handleMessage: X
03-26 00:46:18.991 450-466/? V/Provider/Settings﹕ from settings cache , name = sys_free_storage_log_interval , value = null
03-26 00:46:18.992 450-466/? V/Provider/Settings﹕ from settings cache , name = disk_free_change_reporting_threshold , value = null
03-26 00:46:19.023 176-176/? W/ADB_SERVICES﹕ create_local_service_socket() name=shell:logcat -c
03-26 00:46:19.024 14779-14779/? W/ADB_SERVICES﹕ adb: unable to open /proc/14779/oom_adj
03-26 00:46:19.042 176-176/? D/ADB_SERVICES﹕ closing because is_eof=1 r=-1 s->fde.force_eof=0
03-26 00:46:19.468 450-516/? D/InputReader﹕ AP_PROF:AppLaunch_dispatchPtr:Down:531762778
03-26 00:46:19.468 450-516/? I/AP_PROF﹕ unable to open /proc/mtprof/status entry
public override ActionResult Execute(RAIN.Core.AI ai)
{
if (!WanderTargetVariable.IsVariable)
throw new Exception("The Choose Wander Position node requires a valid Wander Target Variable");
float tWanderDistance = 0f;
if (WanderDistance.IsValid)
tWanderDistance = WanderDistance.Evaluate<float>(ai.DeltaTime, ai.WorkingMemory);
if (tWanderDistance <= 0f)
template<class T>
class WrapperVector {
public:
WrapperVector(size_t n = 10):
_data(new T[n]()),
_size(n)
{
}
WrapperVector(const WrapperVector<T> & other):
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String [] args) throws IOException {
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String [] args) throws IOException {
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String [] args) throws IOException {