This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Animation/AnimInstanceBase.h" | |
#include "Animation/AnimCurveCompressionCodec_UniformIndexable.h" | |
DEFINE_LOG_CATEGORY(LogAnimInstanceBase) | |
float UAnimInstanceBase::GetCurveTime(const UAnimSequence* AnimationSequence, const FName CurveName, const float CurveValue) | |
{ | |
if (AnimationSequence == nullptr) | |
{ | |
UE_LOG(LogAnimInstanceBase, Error, TEXT("Invalid Animation Sequence ptr")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.AI; | |
[DisallowMultipleComponent] | |
[RequireComponent(typeof(Animator))] | |
[RequireComponent(typeof(Rigidbody))] | |
[RequireComponent(typeof(NavMeshAgent))] | |
public class HumanoidController : MonoBehaviour | |
{ | |
private Animator animator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MonoCached : MonoBehaviour | |
{ | |
public new Transform transform | |
{ | |
get | |
{ | |
if (localTransform == null) | |
{ | |
localTransform = base.transform; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
class TimeoutException(Exception): | |
def __init__(self, message): | |
self.message = message | |
def __str__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from contextlib import ContextDecorator | |
class timer(ContextDecorator): | |
def __enter__(self): | |
self.start_time = time.time() | |
return self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from dateutil import parser | |
from colorclass import Color | |
from colorclass.toggles import disable_all_colors | |
from terminaltables import AsciiTable | |
from terminaltables import SingleTable | |
from behave.configuration import Configuration | |