// Instanciate a few gameojbect void Awake() { _audio = GetComponent <AudioSource>(); _animator = GetComponentInChildren <Animator>(); _controller = GetComponent <AIController2D>(); _spriteR = GetComponent <SpriteRenderer>(); }
void Start() { aiController2D = GetComponent <AIController2D>(); triggerController = GetComponent <AITriggerController>(); gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity * timeToJumpApex); minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); }
void Start() { buildPC = Resources.Load <BoolVariable>("BuildPC"); anim = GetComponent <Animator>(); dogAnim = GetComponent <DogAnim>(); dogController = GetComponent <AIController2D>(); inputController = FindObjectOfType <InputController>(); CalculateJumpStats(); }
void Start() { pv = GetComponent <PhotonView>(); controller = GetComponent <AIController2D>(); dogArmature.armature.cacheFrameRate = 24; if (PhotonNetwork.InRoom) { isOnline = true; } else { isOnline = false; } }
void Start() { aiController2D = GetComponent <AIController2D>(); }
// Use this for initialization protected virtual void Start() { aiControl = transform.root.GetComponent <AIController2D>(); }