コード例 #1
0
ファイル: Environment.cs プロジェクト: talyh/Rutzer
    private void RunInitialChecks()
    {
        _renderer = GetComponent <SpriteRenderer>();

        Supporting.CheckRequiredProperty(gameObject, _renderer, "Spirte Renderer");
        Supporting.CheckRequiredProperty(gameObject, _wind, "Wind");
    }
コード例 #2
0
    private void Start()
    {
        Supporting.CheckRequiredProperty(gameObject, _canvas, "Canvas");
        Supporting.CheckRequiredProperty(gameObject, _display, "Display");
        Supporting.CheckRequiredProperty(gameObject, _statusNodesIdle, "StatusNodeIdle");
        Supporting.CheckRequiredProperty(gameObject, _statusNodesCorrect, "StatusNodeCorrect");
        Supporting.CheckRequiredProperty(gameObject, _statusNodesWrong, "StatusNodeWrong");
        Supporting.CheckRequiredProperty(gameObject, _btn0, "Button 0");
        Supporting.CheckRequiredProperty(gameObject, _btn1, "Button 1");
        Supporting.CheckRequiredProperty(gameObject, _btn2, "Button 2");
        Supporting.CheckRequiredProperty(gameObject, _btn3, "Button 3");
        Supporting.CheckRequiredProperty(gameObject, _btn4, "Button 4");
        Supporting.CheckRequiredProperty(gameObject, _btn5, "Button 5");
        Supporting.CheckRequiredProperty(gameObject, _btn6, "Button 6");
        Supporting.CheckRequiredProperty(gameObject, _btn7, "Button 7");
        Supporting.CheckRequiredProperty(gameObject, _btn8, "Button 8");
        Supporting.CheckRequiredProperty(gameObject, _btn9, "Button 9");
        Supporting.CheckRequiredProperty(gameObject, _btnEnter, "Button Enter");
        Supporting.CheckRequiredProperty(gameObject, _btnBack, "Button Back");
        Supporting.CheckRequiredProperty(gameObject, _btnExit, "Button Exit");
        Supporting.CheckRequiredProperty(gameObject, _audioSource, "AudioSource");

        _defaultColor = display.color;

        BindButtons();
    }
コード例 #3
0
 private void RunInitialChecks()
 {
     Supporting.CheckRequiredProperty(gameObject, _rb, "Rigidboy");
     Supporting.CheckRequiredProperty(gameObject, _gapCheck, "Gap Check");
     Supporting.CheckRequiredProperty(gameObject, _floorCheck, "Jump Level Check");
     Supporting.CheckRequiredProperty(gameObject, _landingCheck, "Jump High Check");
     Supporting.CheckRequiredProperty(gameObject, _runnerAnimator, "Runner Animator");
 }
コード例 #4
0
ファイル: ExpandingPlatform.cs プロジェクト: talyh/Rutzer
    private void RunInitialChecks()
    {
        Supporting.CheckRequiredProperty(gameObject, _shrinked, "Shrinked Sprite");
        Supporting.CheckRequiredProperty(gameObject, _expanded, "Expanded Sprite");

        _collider = GetComponent <BoxCollider2D>();
        Supporting.CheckRequiredProperty(gameObject, _collider, "Collider");
    }
コード例 #5
0
ファイル: CameraController.cs プロジェクト: talyh/Rutzer
    private void RunInitialChecks()
    {
        // Find the player
        _target = GameController.instance.character;

        if (Supporting.CheckRequiredProperty(gameObject, _target, "Target"))
        {
            _offset = _target.position.x - transform.position.x;
        }
    }
コード例 #6
0
ファイル: VerticalPlatform.cs プロジェクト: talyh/Rutzer
 private void RunInitialChecks()
 {
     _slider = GetComponent <SliderJoint2D>();
     Supporting.CheckRequiredProperty(gameObject, _slider, "Slider Joint");
 }
コード例 #7
0
ファイル: WindAffected.cs プロジェクト: talyh/Rutzer
    private void RunInitialChecks()
    {
        _rb = GetComponent <Rigidbody2D>();

        Supporting.CheckRequiredProperty(gameObject, _rb, "Rigidbody");
    }
コード例 #8
0
ファイル: RunnerAnimator.cs プロジェクト: talyh/Rutzer
 private void RunInitialChecks()
 {
     Supporting.CheckRequiredProperty(gameObject, _animator, "Animator");
     Supporting.CheckRequiredProperty(gameObject, _particles, "Particle System");
 }