// Use this for initialization void Start() { this._ren = this.GetComponent<ItemRendering>(); this._flashingClock = Time.time; this._clockStartTime = this._flashingClock; this._clockInterval = this._slowFlashInterval; }
private bool CheckColorMatch( ItemRendering target ) { return target.Background == this.GetComponent<ItemRendering>().Background; }
private bool CheckColorMatch(ItemRendering target) { return(target.Background == this.transform.parent.GetComponent <ItemRendering>().Background); }