// Start is called before the first frame update void Awake() { player = GameObject.FindGameObjectWithTag("Player"); ronyControls = player.GetComponent <RonyControls>(); spawnArea = GameObject.FindGameObjectWithTag("SpawnArea"); itemController = spawnArea.GetComponent <ItemController>(); }
// Start is called before the first frame update void Awake() { position = GetComponent <Renderer>().bounds.center; breakingEffect = GameObject.FindGameObjectWithTag("BreakEffect"); particleSystem = breakingEffect.GetComponent <ParticleSystem>(); cameraControl = Camera.main.gameObject.GetComponent <CameraController>(); player = GameObject.FindGameObjectWithTag("Player"); playerControl = player.GetComponent <RonyControls>(); anim = GetComponent <Animator>(); }
float waitTime = 0f; //waited this much time void Start() { player = GameObject.FindGameObjectWithTag("Player"); ronyControls = player.GetComponent <RonyControls>(); }