public void EditorApply()
        {
            MainCharacterControl MCC = GetComponent <MainCharacterControl>();
            MovementControl      MC  = GetComponent <MovementControl>();
            ConstructionControl  CC  = GetComponent <ConstructionControl>();

            MCC.SetHeight(Height);
            MC.MovementSpeed = Speed;
            gameObject.transform.localScale = new Vector3(CharacterScale, CharacterScale, CharacterScale);
            CC.Scale = ConstructionScale;
        }
示例#2
0
 public void Awake()
 {
     Main = this;
 }