예제 #1
0
    void Start()
    {
        rb   = gameObject.GetComponent <Rigidbody>();
        anim = transform.GetChild(0).GetComponent <Animator>();
        resorcesPlacement = GameObject.Find("ResourcePlacer").GetComponent <ResourcesPlacement>();

        playerConditions = GetComponent <PlayerConditions>();
    }
예제 #2
0
    void Start()
    {
        playerConditions = getConditions.GetComponent <PlayerConditions>();
        player           = GameObject.Find("Player");

        resourcesPlacement = GameObject.Find("ResourcePlacer").GetComponent <ResourcesPlacement>();
        objManager         = GameObject.Find("Rocket").GetComponent <ObjectivesManager>();
        explosion          = GameObject.Find("Explosion").GetComponent <ParticleSystem>();
        fire = GameObject.Find("Fire").GetComponent <ParticleSystem>();
    }
예제 #3
0
    void Start()
    {
        _boxCollider2D = GetComponent <BoxCollider2D>();

        _conditions = new PlayerConditions();
        _conditions.Reset();

        _levelManager = GameObject.FindGameObjectWithTag("manager").GetComponent <LevelManager>();

        textOverHead.text = "Gravidade \n" + gravity.ToString();
    }
예제 #4
0
 void Start()
 {
     Paratoria   = GameObject.Find("Wraith(Clone)").transform.GetChild(0).GetComponent <Paratoria>();
     Shadowlites = GetComponentInParent <Shadowlites>();
     player      = GameObject.Find("Player").GetComponent <PlayerConditions>();
 }