// Use this for initialization void Start() { // physicsLogic = this.gameObject.GetComponent<PhysicsLogic> (); character = GameObject.Find("PlayerManager").GetComponent <Rigidbody2D>(); playerStatsLogic = this.gameObject.GetComponent <PlayerStatsLogic>(); animationLogic = this.gameObject.GetComponent <AnimationLogic>(); soundLogic = this.gameObject.GetComponent <SoundLogic>(); touch = GameObject.Find("TouchInterpter").GetComponent <TouchInterpeter>(); }
void Start() { physicsLogic = this.gameObject.GetComponent <PhysicsLogic> (); movmentLogic = this.gameObject.GetComponent <MovmentLogic> (); scoreLogic = this.gameObject.GetComponent <ScoreLogic>(); playerStatsLogic = this.gameObject.GetComponent <PlayerStatsLogic>(); missionLogic = this.gameObject.GetComponent <MissionLogic>(); animationLogic = this.gameObject.GetComponent <AnimationLogic>(); soundLogic = this.gameObject.GetComponent <SoundLogic>(); }
// Use this for initialization void Start() { //TODO: SET ASSETST // _BubblePowerUpIcon = Resources.Load("stupidL") as GameObject; missionLogic = this.gameObject.GetComponent <MissionLogic>(); playerStatsLogic = this.gameObject.GetComponent <PlayerStatsLogic>(); powerUPText = GameObject.Find("PowerUpText").GetComponent <Text>(); touch = GameObject.Find("TouchInterpter").GetComponent <TouchInterpeter>(); movmentLogic = this.gameObject.GetComponent <MovmentLogic>(); animationLogic = this.gameObject.GetComponent <AnimationLogic>(); character = GameObject.Find("PlayerManager"); _SuperhitPowerUpPrefab = Resources.Load("SuperHitPowerUp") as GameObject; BuildDictionary(); }
// Use this for initialization void Start() { losePanel = GameObject.Find("LosePanel"); OrigPos = new Vector3(0, 30, 0); EndPos = new Vector3(0, 6, 0); movmentLogic = this.gameObject.GetComponent <MovmentLogic>(); playerStatsLogic = this.gameObject.GetComponent <PlayerStatsLogic>(); missionLogic = this.gameObject.GetComponent <MissionLogic>(); scoreLogic = this.gameObject.GetComponent <ScoreLogic>(); missionsToggleAndText = new InternalMissionModel[] { new InternalMissionModel(), new InternalMissionModel(), new InternalMissionModel() }; deathMissionsToggleAndText = new InternalMissionModel[] { new InternalMissionModel(), new InternalMissionModel(), new InternalMissionModel() }; deathMissionsToggleAndTextNew = new InternalMissionModel[] { new InternalMissionModel(), new InternalMissionModel(), new InternalMissionModel() }; int missionNum = 0; deathMissionsToggleAndText[missionNum].missionText = GameObject.Find("LosePanel/LoseMission1/LoseMissionText1").GetComponent <Text>(); deathMissionsToggleAndText[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission1").GetComponent <Toggle>(); deathMissionsToggleAndTextNew[missionNum].missionText = GameObject.Find("LosePanel/LoseMission1New/LoseMissionText1").GetComponent <Text>(); deathMissionsToggleAndTextNew[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission1New").GetComponent <Toggle>(); missionNum++; deathMissionsToggleAndText[missionNum].missionText = GameObject.Find("LosePanel/LoseMission2/LoseMissionText2").GetComponent <Text>(); deathMissionsToggleAndText[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission2").GetComponent <Toggle>(); deathMissionsToggleAndTextNew[missionNum].missionText = GameObject.Find("LosePanel/LoseMission2New/LoseMissionText2").GetComponent <Text>(); deathMissionsToggleAndTextNew[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission2New").GetComponent <Toggle>(); missionNum++; deathMissionsToggleAndText[missionNum].missionText = GameObject.Find("LosePanel/LoseMission3/LoseMissionText3").GetComponent <Text>(); deathMissionsToggleAndText[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission3").GetComponent <Toggle>(); deathMissionsToggleAndTextNew[missionNum].missionText = GameObject.Find("LosePanel/LoseMission3New/LoseMissionText3").GetComponent <Text>(); deathMissionsToggleAndTextNew[missionNum].missionToggle = GameObject.Find("LosePanel/LoseMission3New").GetComponent <Toggle>(); origMissionTextX = deathMissionsToggleAndText[missionNum].missionToggle.transform.position.x - 1; EndMissionTextX = origMissionTextX - 30; deathScore = GameObject.Find("LosePanel/LoseScore").GetComponent <Text>(); }
//////////////// public override void Initialize() { this.Logic = new PlayerStatsLogic(); }
void Start() { statsLogic = GameObject.Find("Logic").GetComponent <PlayerStatsLogic>(); }