void Start() { gameController = FindObjectOfType <GameController>(); inputController = FindObjectOfType <InputController>(); mapMaker = FindObjectOfType <MapMaker>(); grabbing = GetComponent <Grabbing>(); map = GameObject.Find("Map"); if (map == null) { map = new GameObject("Map"); map.transform.position = Vector3.zero; } spawnLists = new GameObject[4][]; spawnLists[0] = mapMaker.wallList; spawnLists[1] = mapMaker.actorList; spawnLists[2] = mapMaker.hazardList; spawnLists[3] = mapMaker.floorList; iteratorMemory = new int[spawnLists.Length]; for (int i = 0; i < iteratorMemory.Length; i++) { iteratorMemory[i] = 0; } creativeUIController = FindObjectOfType <CreativeUIController>(); if (gameController.creativeMode) { SendUIUpdate(); } }
// Use this for initialization public override void Start() { base.Start(); interruptableByNormalAttack = false; TrajectoryDetector.OnTrigger += TrajectoryGestureTriggered; HandUpDetector.OnTrigger += HandUpGestureTriggered; GrabDetector.OnGrab += GrabGestureTriggered; skillAntiGravity = new AntiGravity(); skillGrabbing = new Grabbing(); skillSpike = new EarthSpikes(); skillBeam = new LightBeam(); skillFireBall = new FireBallSpell(); skillLightning = new LightningStrike(); skillSummonHelper = new SummonHelper(); skillHeal = new Heal(); skillSpeedUp = new SpeedUp(); }
protected virtual void Start() { grabbing = GetComponent <Grabbing> (); }