Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
 private void Awake()
 {
     ppm = transform.parent.GetComponent<PowerProfileManager>();
 }