コード例 #1
0
ファイル: LeverTrigger.cs プロジェクト: eaho1/Spooky-Spoils
 void Start()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     this.GetComponent <Collider2D>().enabled = false;
     audioClip = GetComponent <AudioSource>();
 }
コード例 #2
0
 void Start()
 {
     _bgTransform      = transform.Find("background");
     _bgSpriteRenderer = _bgTransform.GetComponent <SpriteRenderer>();
     _bgCollider2D     = _bgTransform.GetComponent <BoxCollider2D>();
     _bgGazeAware      = _bgTransform.GetComponent <GazeAwareComponent>();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     nav = GetComponent <NavMeshAgent>();
     _gazeAwareComponent = GetComponent <GazeAwareComponent>();
     Player = GameObject.FindGameObjectWithTag("MainCamera").transform;
     //caughtTime = 0;
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     nav = GetComponent <NavMeshAgent>();
     _gazeAwareComponent = GetComponent <GazeAwareComponent>();
     Player = GameObject.FindGameObjectWithTag("MainCamera").transform;
     _Sound = GetComponent <AudioSource>();
     timer  = 0;
 }
コード例 #5
0
 void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     player      = GameObject.FindGameObjectWithTag("Player");
     anim        = this.GetComponent <Animator>();
     audioClip   = this.GetComponent <AudioSource>();
 }
コード例 #6
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>();
    }
コード例 #7
0
ファイル: KeyPickup.cs プロジェクト: eaho1/Spooky-Spoils
 public virtual void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     if (AwareNotNull())
     {
         this.GetComponent <Collider2D>().enabled = false;
     }
 }
コード例 #8
0
 // 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;
 }
コード例 #9
0
 void _getComp()
 {
     _go = Fsm.GetOwnerDefaultTarget(gameObject);
     if (_go == null)
     {
         return;
     }
     _GazeAwareComponent          = _go.GetComponent <GazeAwareComponent>();
     _PlayMakerGazeAwareComponent = _go.GetComponent <PlayMakerGazeAwareComponent>();
 }
コード例 #10
0
    // 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>();
    }
コード例 #11
0
    private GazeAwareComponent _gazeAware; // to reach gaze data, defining gaze aware component



    void Start()
    {
        _gazeAware = GetComponent <GazeAwareComponent>();        // initializing gaze aware component
    }
コード例 #12
0
 protected void Start()
 {
     _gazeAwareComponent = GetComponent <GazeAwareComponent>();
 }
コード例 #13
0
ファイル: HiddenInFog.cs プロジェクト: eaho1/Spooky-Spoils
 public virtual void Awake()
 {
     _gazeAware      = this.GetComponent <GazeAwareComponent>();
     _mouseAware     = this.GetComponent <MouseAwareComponent>();
     _spriteRenderer = this.GetComponent <SpriteRenderer>();
 }
コード例 #14
0
	protected void Start()
	{
		_gazeAwareComponent = GetComponent<GazeAwareComponent>();
		origPos = transform.position;

	}
コード例 #15
0
ファイル: eyex.cs プロジェクト: notinachos/sacrifice-or-die
 // Use this for initialization
 void Start () {
     _gazeAware = GetComponent<GazeAwareComponent>();
     left = leftBox.GetComponent<GazeAwareComponent>();
     right = rightBox.GetComponent<GazeAwareComponent>();
 }
コード例 #16
0
 void Start()
 {
     _gazeAware = GetComponent <GazeAwareComponent>();
 }
コード例 #17
0
 // Use this for initialization
 void Start()
 {
     gaze = GetComponent<GazeAwareComponent>();
     rend = GetComponent<SpriteRenderer>();
     invis = false;
 }
コード例 #18
0
 // Use this for initialization
 void Start () {
     gazeTimer = 80;
     _textMesh = GetComponent<TextMesh>();
     _gazeAware = GetComponent<GazeAwareComponent>();
 }
コード例 #19
0
 void _getComp()
 {
     _go = Fsm.GetOwnerDefaultTarget(gameObject);
     if (_go == null)
     {
         return;
     }
     _GazeAwareComponent = _go.GetComponent<GazeAwareComponent>();
     _PlayMakerGazeAwareComponent = _go.GetComponent<PlayMakerGazeAwareComponent>();
 }
コード例 #20
0
 void Start()
 {
     _gazeAware = GetComponent<GazeAwareComponent>();
 }
コード例 #21
0
ファイル: GoalZone.cs プロジェクト: etang4/GGJ2016
 protected void Start()
 {
     _gazeAwareComponent = GetComponent<GazeAwareComponent>();
 }
コード例 #22
0
 void Awake()
 {
     _gazeAware  = this.GetComponent <GazeAwareComponent>();
     _mouseAware = this.GetComponent <MouseAwareComponent>();
     audioClip   = this.GetComponentInParent <AudioSource>();
 }