private void OnTextureDrag(GameObject go, Vector2 delta) { if (mModel == null) { return; } ESpin.Get(mModel).OnSpin(delta, 2); }
private void OnHeroTextureDrag(GameObject go, Vector2 delta) { if (mAvatar == null && mAvatar.GetRootObj() != null) { return; } ESpin.Get(mAvatar.GetRootObj()).OnSpin(delta, 2); }
private void OnHeroTextureDrag(GameObject go, Vector2 delta) { if (mPlayer == null) { return; } ESpin.Get(mPlayer.Obj).OnSpin(delta, 2); }
public static ESpin Get(GameObject go) { if (go == null) { return(null); } ESpin spin = go.GET <ESpin>(); return(spin); }