예제 #1
0
파일: Vapor.cs 프로젝트: faarisali/Planet-B
    private void Start()
    {
        startPosition = transform.position;
        rb            = GetComponent <Rigidbody2D>();

        manager = GameObject.Find("GameManager").GetComponent <ILevelManagerCondensation>();
    }
예제 #2
0
    protected override void Start()
    {
        base.Start();

        manager = managerObj.GetComponent <ILevelManagerCondensation>();

        //condensation bar
        condensationBar = this.transform.GetChild(4).gameObject.GetComponent <ProgressBar>();
        setInitialBarValues(condensationBar, manager.GetCondensedVapour(), manager.GetCondensedVapourNeeded());
    }