コード例 #1
0
    // Use this for initialization
    void Start()
    {
        BGM = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
        //スコア初期化
        score = 0;

        BGM.select_BGM(0);
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        direction = GetComponent <player_move>();
        SE        = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();

        time = 10.0f;

        st = GameObject.Find("statusContolloer").GetComponent <stautascontolloer>();
    }
コード例 #3
0
    // Use this for initialization


    void Awake()
    {
        SE = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();


        UI_Con = GameObject.Find("UI_Controller");

        if (gameObject.name == trasure_name)
        {
            treasure_score = 10;
        }

        else if (gameObject.name == trasure_name2)
        {
            treasure_score = 100;
        }

        else if (gameObject.name == trasure_name3)
        {
            treasure_score = 1000;
        }
    }
コード例 #4
0
 void Awake()
 {
     sound_come = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     MainSprite = GetComponent <SpriteRenderer>();
     SE         = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
 }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     player_num = TitleSystem.Get_Member();
     BGM        = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
     BGM.select_BGM(1);
 }
コード例 #7
0
 void Awake()
 {
     SE         = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
     movePatern = Random.Range(0, 3);//0なら部屋内完全ランダム1なら完全追従2ならランダム→部屋内追従
 }
コード例 #8
0
 void Awake()
 {
     BGM = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
     BGM.select_BGM(2);
 }