void Start() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); this.GetComponent <Collider2D>().enabled = false; audioClip = GetComponent <AudioSource>(); }
void Start() { _bgTransform = transform.Find("background"); _bgSpriteRenderer = _bgTransform.GetComponent <SpriteRenderer>(); _bgCollider2D = _bgTransform.GetComponent <BoxCollider2D>(); _bgGazeAware = _bgTransform.GetComponent <GazeAwareComponent>(); }
// Use this for initialization void Start() { nav = GetComponent <NavMeshAgent>(); _gazeAwareComponent = GetComponent <GazeAwareComponent>(); Player = GameObject.FindGameObjectWithTag("MainCamera").transform; //caughtTime = 0; }
// Use this for initialization void Start() { nav = GetComponent <NavMeshAgent>(); _gazeAwareComponent = GetComponent <GazeAwareComponent>(); Player = GameObject.FindGameObjectWithTag("MainCamera").transform; _Sound = GetComponent <AudioSource>(); timer = 0; }
void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); player = GameObject.FindGameObjectWithTag("Player"); anim = this.GetComponent <Animator>(); audioClip = this.GetComponent <AudioSource>(); }
//public Animator anim; void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); player = GameObject.FindGameObjectWithTag("Player"); _spriteRenderer = this.GetComponent <SpriteRenderer>(); //anim = this.GetComponent<Animator>(); }
public virtual void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); if (AwareNotNull()) { this.GetComponent <Collider2D>().enabled = false; } }
// Use this for initialization void Start() { GazeAwareComp = GetComponent<GazeAwareComponent>(); target = Vector3.zero;//target is set in ObjectSelection script selected = false; color = this.renderer.material.color; isSelectedSound = this.GetComponent<AudioSource>(); // gravity = GetComponent<Rigidbody>().useGravity; }
void _getComp() { _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go == null) { return; } _GazeAwareComponent = _go.GetComponent <GazeAwareComponent>(); _PlayMakerGazeAwareComponent = _go.GetComponent <PlayMakerGazeAwareComponent>(); }
// Use this for initialization void Start () { inView = false; if (goingLeft) { onRightEndOfPath = true; onLefttEndOfPath = false; facingRight = true; } if (goingRight) { onRightEndOfPath = false; onLefttEndOfPath = true; facingRight = false; } initialLocalScale = transform.localScale; lerpSmoothing = 0f; er = GetComponent<EnemyRun>(); animator = GetComponent<Animator>(); rb2d = GetComponent<Rigidbody2D>(); _gazeAware = GetComponent<GazeAwareComponent>(); }
private GazeAwareComponent _gazeAware; // to reach gaze data, defining gaze aware component void Start() { _gazeAware = GetComponent <GazeAwareComponent>(); // initializing gaze aware component }
protected void Start() { _gazeAwareComponent = GetComponent <GazeAwareComponent>(); }
public virtual void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); _spriteRenderer = this.GetComponent <SpriteRenderer>(); }
protected void Start() { _gazeAwareComponent = GetComponent<GazeAwareComponent>(); origPos = transform.position; }
// Use this for initialization void Start () { _gazeAware = GetComponent<GazeAwareComponent>(); left = leftBox.GetComponent<GazeAwareComponent>(); right = rightBox.GetComponent<GazeAwareComponent>(); }
void Start() { _gazeAware = GetComponent <GazeAwareComponent>(); }
// Use this for initialization void Start() { gaze = GetComponent<GazeAwareComponent>(); rend = GetComponent<SpriteRenderer>(); invis = false; }
// Use this for initialization void Start () { gazeTimer = 80; _textMesh = GetComponent<TextMesh>(); _gazeAware = GetComponent<GazeAwareComponent>(); }
void _getComp() { _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go == null) { return; } _GazeAwareComponent = _go.GetComponent<GazeAwareComponent>(); _PlayMakerGazeAwareComponent = _go.GetComponent<PlayMakerGazeAwareComponent>(); }
void Start() { _gazeAware = GetComponent<GazeAwareComponent>(); }
protected void Start() { _gazeAwareComponent = GetComponent<GazeAwareComponent>(); }
void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); audioClip = this.GetComponentInParent <AudioSource>(); }