/// Override this to describe what happens when the object gets picked /// </summary> protected override void Pick() { base.Pick(); _characterHandleMelee = _collider.GetComponent <CharacterHandleMelee> (); _sprite = gameObject.GetComponent <SpriteRenderer> (); _characterInventory = _collider.GetComponent <LucyInventory>(); _characterHandleMelee.AbilityPermitted = true; _sprite.enabled = false; //if we haven't already obtained it if (!GameManager.Instance.PlasmaBladeObtained) { if (!GameManager.Instance.DebugMode) { RunSplashScreen(); } GameManager.Instance.PlasmaBladeObtained = true; RetroAdventureProgressManager.Instance.SaveProgress(); } }
protected override void Setup() { base.Setup(); _animator = GetComponent <Animator>(); _characterHandleEMP = GetComponent <CharacterHandleEMP>(); _lucyHealth = GetComponent <LucyHealth>(); _magnetEffect = GetComponent <LucyMagnet>(); _characterHandleMelee = GetComponent <CharacterHandleMelee>(); _walljump = GetComponent <LucyWallJump>(); _wallcling = GetComponent <LucyWallClinging>(); _lucyFlamethrower = GetComponent <LucyFlamethrower>(); _characterRun = GetComponent <CharacterRun>(); _plasmaRainbow = GetComponent <_2dxFX_PlasmaRainbow>(); PowerNodesCollected = 0; StartCoroutine(AddItemsToInventory()); StartCoroutine(GetTheRightSuitOn()); }
// Use this for initialization void Start() { _meleeWeapon = GetComponentInParent <CharacterHandleMelee>(); _controller = GetComponentInParent <CorgiController>(); _circleCollider = GetComponent <CircleCollider2D>(); }