コード例 #1
0
    private void Start()
    {
        HeroCostume.Init();
        HERO_SETUP component = gameObject.GetComponent <HERO_SETUP>();

        component.Init();
        component.myCostume = HeroCostume.costume[this.costumeId];
        component.SetCharacterComponent();
        this.head       = base.transform.Find("Amarture/Controller_Body/hip/spine/chest/neck/head");
        this.cameraPref = base.transform.Find("Amarture/Controller_Body/hip/spine/chest/shoulder_R/upper_arm_R");
        if (this.costumeId == 9)
        {
            this.cameraOffset = monoT.position - this.cameraPref.position;
        }
        if (component.myCostume.sex == Sex.Female)
        {
            baseA.Play("stand");
            baseA["stand"].normalizedTime = UnityEngine.Random.Range(0f, 1f);
        }
        else
        {
            baseA.Play("stand_levi");
            baseA["stand_levi"].normalizedTime = UnityEngine.Random.Range(0f, 1f);
        }
        AnimationState animationState = baseA["stand_levi"];
        float          speed          = 0.5f;

        baseA["stand"].speed = speed;
        animationState.speed = speed;
    }
コード例 #2
0
ファイル: HERO_ON_MENU.cs プロジェクト: xRainCloud/guardian
    private void Start()
    {
        HERO_SETUP component = base.gameObject.GetComponent <HERO_SETUP>();

        HeroCostume.Init();
        component.Init();
        component.myCostume = HeroCostume.Costumes[costumeId];
        component.CreateCharacterComponent();
        head       = base.transform.Find("Amarture/Controller_Body/hip/spine/chest/neck/head");
        cameraPref = base.transform.Find("Amarture/Controller_Body/hip/spine/chest/shoulder_R/upper_arm_R");
        if (costumeId == 9)
        {
            cameraOffset = GameObject.Find("MainCamera_Mono").transform.position - cameraPref.position;
        }
        if (component.myCostume.sex == Sex.Female)
        {
            base.animation.Play("stand");
            base.animation["stand"].normalizedTime = Random.Range(0f, 1f);
        }
        else
        {
            base.animation.Play("stand_levi");
            base.animation["stand_levi"].normalizedTime = Random.Range(0f, 1f);
        }
        AnimationState animationState = base.animation["stand_levi"];
        float          speed          = 0.5f;

        base.animation["stand"].speed = speed;
        animationState.speed          = speed;
    }
コード例 #3
0
 private void Awake()
 {
     CostumeHair.Init();
     CharacterMaterials.InitData();
     HeroCostume.Init();
     hair_go_ref                    = new GameObject();
     eye.transform.parent           = base.transform.Find("Amarture/Core/Controller_Body/hip/spine/chest/neck/head").transform;
     hair_go_ref.transform.position = eye.transform.position + Vector3.up * 3.5f + base.transform.forward * 5.2f;
     hair_go_ref.transform.rotation = eye.transform.rotation;
     hair_go_ref.transform.RotateAround(eye.transform.position, base.transform.right, -20f);
     hair_go_ref.transform.localScale = new Vector3(210f, 210f, 210f);
     hair_go_ref.transform.parent     = base.transform.Find("Amarture/Core/Controller_Body/hip/spine/chest/neck/head").transform;
 }
コード例 #4
0
ファイル: FengPhotonCalls.cs プロジェクト: kmlkmljkl2/Anarchy
 private void Start()
 {
     ChangeQuality.setCurrentQuality();
     name = "MultiplayerManager";
     DontDestroyOnLoad(this);
     HeroCostume.Init();
     CharacterMaterials.Init();
     RCManager.ClearAll();
     heroes = new List <HERO>();
     titans = new List <TITAN>();
     hooks  = new List <Bullet>();
     AnarchyManager.DestroyMainScene();
 }