コード例 #1
0
ファイル: InventoryCamera.cs プロジェクト: craus/UnityTest
 void Awake()
 {
     transformAnimator = GetComponent<TransformAnimator>();
     instance = gameObject;
     inventory.onChanged += OnInventoryChanged;
     camera = GetComponent<Camera>();
 }
コード例 #2
0
ファイル: MainCamera.cs プロジェクト: craus/UnityTest
 void Awake()
 {
     instance = gameObject;
     animator = GetComponent<TransformAnimator>();
     animator.getTime = () => TimeManager.RealTime;
     GetComponent<Camera>().layerCullSpherical = true;
 }
コード例 #3
0
 void Awake()
 {
     transformAnimator = GetComponent <TransformAnimator>();
 }
コード例 #4
0
 void Awake()
 {
     transformAnimator    = GetComponent <TransformAnimator>();
     instance             = gameObject;
     inventory.onChanged += OnInventoryChanged;
 }
コード例 #5
0
    void Start()
    {
        animator = GetComponent<Animator>();
        foreach(SlidingDoorStateBehaviour behaviour in animator.GetBehaviours<SlidingDoorStateBehaviour>()) {
            behaviour.AddListener(this);
        }

        for(int i=0; i<floorPositions.Length; i++) {
            floorPositions[i].y = floorPositions[0].y + i * GameController.floorHeight;
        }

        currentTargetFloor = currentFloor;
        positionDriver = new TransformAnimator();
        targetFloors = 0;
        transform.position = GetFloorPosition(currentFloor);
    }
コード例 #6
0
ファイル: InventorySlot.cs プロジェクト: craus/UnityTest
 void Awake() {
     transformAnimator = GetComponent<TransformAnimator>();
 }