Example #1
0
 void Start()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     this.GetComponent <Collider2D>().enabled = false;
     audioClip = GetComponent <AudioSource>();
 }
Example #2
0
 void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     player      = GameObject.FindGameObjectWithTag("Player");
     anim        = this.GetComponent <Animator>();
     audioClip   = this.GetComponent <AudioSource>();
 }
Example #3
0
    //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>();
    }
Example #4
0
 public virtual void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     if (AwareNotNull())
     {
         this.GetComponent <Collider2D>().enabled = false;
     }
 }
Example #5
0
 public virtual void Awake()
 {
     _gazeAware      = this.GetComponent <GazeAwareComponent>();
     _mouseAware     = this.GetComponent <MouseAwareComponent>();
     _spriteRenderer = this.GetComponent <SpriteRenderer>();
 }
Example #6
0
 void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     audioClip   = this.GetComponentInParent <AudioSource>();
 }