private void Awake() { moveSweet = GetComponent <MoveSweet>(); colorSweet = GetComponent <ColorSweet>(); clearSweet = GetComponent <ClearSweet>(); if (clearSweet) { clearSweet.Sweet = this; } }
private void Awake() { moveSweet = GetComponent <MoveSweet>(); colorSweet = GetComponent <ColorSweet>(); clearSweet = GetComponent <ClearSweet>(); }
private void Awake() { moveComponent = GetComponent <MoveSweet>();//获取脚本如果能获取 则说明可以移动 colorComponent = GetComponent <ColorSweet>(); clearComponent = GetComponent <ClearSweet>(); }