Пример #1
0
 // 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>();
 }
Пример #2
0
    // 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();
    }