void Start() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); this.GetComponent <Collider2D>().enabled = false; audioClip = GetComponent <AudioSource>(); }
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; } }
public virtual void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); _spriteRenderer = this.GetComponent <SpriteRenderer>(); }
void Awake() { _gazeAware = this.GetComponent <GazeAwareComponent>(); _mouseAware = this.GetComponent <MouseAwareComponent>(); audioClip = this.GetComponentInParent <AudioSource>(); }