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

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

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