Ejemplo n.º 1
0
    void Start()
    {
        _jump = GetComponentInChildren<Jump>();
        ErrorLog.CheckComponentExist(this._jump, "Jump", this.name);

        _attribute = GetComponentInParent<PlayerAttirbute>();
        ErrorLog.CheckComponentExist(this._attribute, "Attribute", this.name);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     this._attribute = GetComponentInParent<PlayerAttirbute>();
     ErrorLog.CheckComponentExist(this._attribute, "PlayerAttribte", this.name);
 }
Ejemplo n.º 3
0
    void Start()
    {
        this._icon = GetComponentInChildren<SpriteRenderer>();
        this._forceControl = GetComponent<ShootForceControl>();

        this._attribute = GetComponentInParent<PlayerAttirbute>();
        ErrorLog.CheckComponentExist(this._attribute, "PlayerAttribte", this.name);
    }