void Start() { this.rowLength = this.GetComponent <PlatformBoard>().rowLength; this.blocks = this.GetComponent <PlatformBoard>().blocks; this.platform = this.GetComponent <PlatformBoard>(); InvokeRepeating("checkPlatform", 0, frequency); }
void Start() { this.platform = GameObject.FindGameObjectWithTag("platformBoard").GetComponent <PlatformBoard>(); this.rowLength = this.platform.rowLength; }