コード例 #1
0
    // Use this for initialization
    void Start()
    {
        this._transform = gameObject.GetComponent<Transform>();
        this._animator = gameObject.GetComponent<Animator>();
        _instance = this;

        this._artScaleCache = this._transform.localScale;
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        this._transform = gameObject.GetComponent <Transform>();
        this._animator  = gameObject.GetComponent <Animator>();
        _instance       = this;

        this._artScaleCache = this._transform.localScale;
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        //Set default value for each variables
        this._myBody = gameObject.GetComponent<Rigidbody2D>();
        this._transform = gameObject.GetComponent<Transform>();
        this._tagGround = GameObject.Find(this.name + "/tag_ground").transform;
        myAnim = AnimatorControllerJS._instance;
        layerMask = ~layerMask;

        this._move = 0f;
        this._jump = 0f;
        this._facingRight = true;
    }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        //Set default value for each variables
        this._myBody    = gameObject.GetComponent <Rigidbody2D>();
        this._transform = gameObject.GetComponent <Transform>();
        this._tagGround = GameObject.Find(this.name + "/tag_ground").transform;
        myAnim          = AnimatorControllerJS._instance;
        layerMask       = ~layerMask;

        this._move        = 0f;
        this._jump        = 0f;
        this._facingRight = true;
    }