Inheritance: MonoBehaviour
コード例 #1
0
ファイル: Menu.cs プロジェクト: vs-team/casanova-mk2
public void Start()
	{
		UnityMenu = new UnityMenu();
		StartButton = new ButtonGUI("Canvas/Play");
		PreviousMButton = (new Nothing<ButtonGUI>());
		PlusButton = (new Nothing<ButtonGUI>());
		NextMButton = (new Nothing<ButtonGUI>());
		LessButton = (new Nothing<ButtonGUI>());
		BackButton = new ButtonGUI("Canvas/Back");
		
}
コード例 #2
0
ファイル: UnityMove.cs プロジェクト: Kirsty5/Sample-Code
    void Start()
    {
        anim    = GetComponent <Animator>();
        col     = GetComponent <CapsuleCollider>();
        rgdbody = GetComponent <Rigidbody>();

        orgColHeight     = col.height;
        orgVectColCenter = col.center;

        currentHeight = transform.position.y;

        stats = GetComponent <UnityStats>();
        menu  = gameMaster.GetComponent <UnityMenu>();
    }