public void initialize(int n) { ppm = GetComponent<PowerProfileManager>(); ppm.profileName.Text = "Profile " + n; name = ppm.profileName.Text; Debug.Log(name); index = n; if (control == null) control = GetComponent<dfControl>(); ppm.initialize(); }
public void changeProfile(PowerProfileManager p) { ppm = p; if (GameplayCamera.gameCamera.enabled) { profileCooldown = true; cooldown(); } toggleSelected(); if (ppm != null) profileSwitch.Display("Engaged Profile: " +ppm.profile.name); }
private void Awake() { ppm = transform.parent.GetComponent<PowerProfileManager>(); }