コード例 #1
0
    void Start()
    {
        gearType      = "MobilePlatform";
        triggleEnable = true;
        stateOne      = true;

        sourcePosition = transform.position;
        lastPosition   = transform.position;

        pathDiretion      = true;
        currentPointIndex = 0;

        doors = transform.GetComponentsInChildren <MobilePlatformDoor>();
        gear  = transform.GetComponentInChildren <MobilePlatformGear>();
        motor = gameObject.AddComponent <MogoSimpleMotor>();
    }
コード例 #2
0
ファイル: MobilePlatform.cs プロジェクト: lbddk/ahzs-client
    void Start()
    {
        gearType = "MobilePlatform";
        triggleEnable = true;
        stateOne = true;

        sourcePosition = transform.position;
        lastPosition = transform.position;

        pathDiretion = true;
        currentPointIndex = 0;

        doors = transform.GetComponentsInChildren<MobilePlatformDoor>();
        gear = transform.GetComponentInChildren<MobilePlatformGear>();
        motor = gameObject.AddComponent<MogoSimpleMotor>();
    }
コード例 #3
0
    void Start()
    {
        gearType = "PathPointVisableMobilePlatform";

        lastPosition = transform.position;

        doors = transform.GetComponentsInChildren <MobilePlatformDoor>();
        gear  = transform.GetComponentInChildren <MobilePlatformGear>();

        pathPoints.Add(transform.position);

        foreach (Transform pathPoint in pathPointTransform)
        {
            pathPoints.Add(pathPoint.position);
        }
    }
コード例 #4
0
    void Start()
	{
        gearType = "PathPointVisableMobilePlatform";

        lastPosition = transform.position;

        doors = transform.GetComponentsInChildren<MobilePlatformDoor>();
        gear = transform.GetComponentInChildren<MobilePlatformGear>();

        pathPoints.Add(transform.position);

        foreach (Transform pathPoint in pathPointTransform)
        {
            pathPoints.Add(pathPoint.position);
        }
    }