protected override void StartLive()
        {
#if (!DEBUG)
            // The death bar gets created on DeathBarParent.Awake.
            this.deathBar = this.transform.Find("DeathBarParent(Clone)/DeathBar(Clone)").GetComponent <DeathBar>();
            this.deathBar.transform.parent.localPosition    = new Vector3(-0.126f, -0.0013f, -0.047f);
            this.deathBar.transform.parent.localEulerAngles = Vector3.zero;

            var selectable = this.GetComponent <ModSelectable>();
            selectable.Children[0]        = this.springedSwitch.GetComponent <Selectable>();
            selectable.Children[0].Parent = selectable;
#endif
        }
Beispiel #2
0
    void Start()
    {
        if (instance != null)
        {
            Destroy(this);
        }
        else
        {
            instance = this;
        }

        leftSideX = leftSide.position.x + barrierCollider.size.x / 2;

        rightSideX = rightSide.position.x - barrierCollider.size.x / 2;

        aimLine.SetActive(false);
        niceBoobPoof.SetActive(false);
        deathBarMG             = deathBar.GetComponentInChildren <DeathBar>();
        goldenTiddiesText.text = "x " + goldenTiddies.ToString();
        goldenTiddiesText.gameObject.SetActive(false);
        //SpawnBoob(0);
    }