public void Awake() { // for saving data GameObject player = GameObject.Find("Player"); sp = player.GetComponent <SP_FlashLED>(); pc = player.GetComponent <PC_FlashLED>(); }
public void Awake() { // get game objects GameObject player = GameObject.Find("Player"); sp = player.GetComponent <SP_FlashLED>(); dl = player.GetComponent <DL_FlashLED>(); }