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