コード例 #1
0
    void Start()
    {
        BoxCollider boxcol = GetComponent <BoxCollider>();

        magnification = new Vector3(boxcol.size.x, boxcol.size.y, boxcol.size.z);
        DefaultLayer  = gameObject.layer;
        Debug.Log("アーティファクト『ピンセット』の適用完了\n適用したオブジェクトはアーティファクトフェイズでのみ移動可能");
        artefactset     = Camera.main.gameObject.GetComponent <ArtefactSet>();
        PhaseChange     = Camera.main.gameObject.GetComponent <phasechange>();
        DefaultPosition = transform.position;
        camera          = GetComponent <Camera>();
        StartPosition   = transform.position;
    }
コード例 #2
0
 private void Start()
 {
     artefactset = GameObject.Find("Main Camera").GetComponent <ArtefactSet>();
 }