Beispiel #1
0
    private void Init()
    {
        GameObject pools = GameObject.Find("pools");

        movement          = pools.GetComponent <PoolMaskMovement>();
        manager           = pools.GetComponent <LevelManager>();
        textAppearance    = GameObject.Find("Dialogue").GetComponent <TextAppearance>();
        sceneEventManager = GameObject.Find("GameManager").GetComponent <SceneEventManager>();

        //get default values to allow for live restoration
        baseMovementSpeed       = movement.transitionSpeed;
        baseTimeWaitClientEnter = sceneEventManager.timeWaitClientEnter;
    }
Beispiel #2
0
 void Awake()
 {
     poolMovVals = GetComponentInParent <PoolMaskMovement>();
     cam         = Camera.main;
 }