void InitPhysicalContext() { if (physicalReference.Init(root, prefix, bones, physicalReferenceOverride)) { // break original object's hierachy of transforms, so we can use MovePosition() and MoveRotation() to set transform NeuronHelper.BreakHierarchy(bones); } CheckRigidbodySettings(); }
public bool Bind(Transform root, string prefix) { this.root = root; this.prefix = prefix; int bound_count = NeuronHelper.Bind(root, bones, prefix, false); //boundTransforms = bound_count >= (int)NeuronBones.NumOfBones; //return boundTransforms; return(true); }
bool InitPhysicalContext() { if (physicalReference.Init(boundAnimator)) { // break original object's hierachy of transforms, so we can use MovePosition() and MoveRotation() to set transform NeuronHelper.BreakHierarchy(boundAnimator); return(true); } return(false); }
//bool InitPhysicalContext() void InitPhysicalContext() { if (physicalReference.Init(boundAnimator, physicalReferenceOverride)) { // break original object's hierachy of transforms, so we can use MovePosition() and MoveRotation() to set transform NeuronHelper.BreakHierarchy(boundAnimator); //return true; } CheckRigidbodySettings(); // return false; }
static void Main(string[] args) { neuronHelper = new NeuronHelper(); // Console.WriteLine($"Обучаем бота"); // neuronHelper.LearnBot(); // Console.WriteLine($"Бот успешно обучен"); WebProxy wp = new WebProxy("50.113.187.160:443", true); client = new TelegramBotClient(token, wp); client.OnMessage += BotOnMessageReceived; client.OnMessageEdited += BotOnMessageReceived; client.StartReceiving(); var me = client.GetMeAsync().Result; Console.WriteLine($"Бот {me.Username} начинает своё вещание :D"); Console.ReadLine(); }