public override void Enter() { arrow = Create3DArrow(); arrow.transform.localPosition = new Vector3(0.18f, 0.08f, 0.3f); arrow.AddComponent(typeof(PointUpOrDown)); context.gameMaster.LockOxygenLow(); buttonArrow = CreateBlinking2DArrow(); Set2DArrowPos(new Vector2(155, 262)); }
public void setBoostButtonControl(HighlightableControlButton arg) { buttonBoost = arg; }
public void setFireButtonControl(HighlightableControlButton arg) { buttonFire = arg; }
// // // // // // Property setters public void setAimButtonControl(HighlightableControlButton arg) { buttonAim = arg; }
public override void Enter() { d = new OnPressedDelegate(this.OnPressedAim); context.buttonAim.AddPressedDelegate(d); context.buttonAim.StartBlinking(); arrow = CreateBlinking2DArrow(); }
protected HighlightableControlButton CreateBlinking2DArrow() { Texture2D emptyTexture = CreateEmptyTexture(); HighlightableControlButton arrow = new HighlightableControlButton(context, context.arrowGUI, null, emptyTexture, context.arrow2D); arrow.StartBlinking(); return arrow; }
void setBoostButtonControl(HighlightableControlButton arg) { arg.AddPressedDelegate(new OnPressedDelegate(OnBoost)); }
void Awake() { useGUILayout = false; IsFreeVersion = PlayerPrefs.HasKey("IsFreeVersion") ? PlayerPrefs.GetInt("IsFreeVersion") > 0 ? true : false : false; fader = new Fader(fade); buttonFire = new HighlightableControlButton(this, fireButtonGUI, fireButtonOn, fireButtonOff, fireButtonHighlight); buttonBoost = new HighlightableControlButton(this, boostButtonGUI, boostButtonOn, boostButtonOff, boostButtonHighlight); buttonAim = new HighlightableControlButton(this, aimButtonGUI, aimButtonOn, aimButtonOff, aimButtonHighlight); fishesInfo = new FishesInfo(); airTankLevel = new ValueHolder(airTank.Length - 1); airTankLevel.Subscribe(OnAirTankLevelChanged); }