Пример #1
0
    void Start()
    {
        _jump = GetComponentInChildren<Jump>();
        ErrorLog.CheckComponentExist(this._jump, "Jump", this.name);

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

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