示例#1
0
    void Start()
    {
        this.rowLength = this.GetComponent <PlatformBoard>().rowLength;
        this.blocks    = this.GetComponent <PlatformBoard>().blocks;
        this.platform  = this.GetComponent <PlatformBoard>();

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