コード例 #1
0
ファイル: Skill_07.cs プロジェクト: firerings/ski-proto-01
	// Use this for initialization
	void Start () 
    {
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        player = GameObject.Find("PlayerManager").GetComponent<PlayerManager>();
        p_position = GameObject.FindWithTag("player");
        SM.SetforcedMatrix(1, 1.0f);
        StartCoroutine(Act());
	}
コード例 #2
0
ファイル: Skill_10.cs プロジェクト: firerings/ski-proto-01
	// Use this for initialization
	void Start () {
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        player = GameObject.Find("PlayerManager").GetComponent<PlayerManager>();
        p_position = GameObject.FindWithTag("player");

        effect = (GameObject)Instantiate(ResourceLoad.PickGameObject("eskill_10"));
        effect.transform.position = new Vector3(p_position.transform.position.x, p_position.transform.position.y + 350, 0); 
        SM.SetforcedMatrix(1, 1.0f);
        StartCoroutine(Act());
	}
コード例 #3
0
ファイル: Skill_06.cs プロジェクト: firerings/ski-proto-01
	// Use this for initialization
	void Start () {
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        player = GameObject.Find("PlayerManager").GetComponent<PlayerManager>();
        p_position = GameObject.FindWithTag("player");

        effect = (GameObject)Instantiate(ResourceLoad.PickGameObject("eskill_6"));
        effect.transform.position = p_position.transform.position;
        SM.SetforcedMatrix(1, 3.0f);
        StartCoroutine(Act());
       // op.x = -60.0f;
	}
コード例 #4
0
ファイル: Skill_08.cs プロジェクト: firerings/ski-proto-01
	// Use this for initialization
	void Start () {
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        effect = (GameObject)Instantiate(ResourceLoad.PickGameObject("eskill_8"));
        if (effect == null)
        {
            return;
        }
        effect.transform.position = new Vector3(GameObject.FindWithTag("player").transform.position.x, -800, 0);
        SM.SetforcedMatrix(1, 1.5f);
        StartCoroutine(Act());
	}
コード例 #5
0
ファイル: Skill_01.cs プロジェクト: firerings/ski-proto-01
    void Start() 
    {
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        
        effect = (GameObject)Instantiate(ResourceLoad.PickGameObject("eskill_1"));
        if (effect == null)
        {
            return;
        }
        player = GameObject.Find("PlayerManager");
        if (player == null)
        {
            return;
        }

        player.SendMessage("BeInvincible", 1.5f);
        SM.SetforcedMatrix(1, 1.5f);
        StartCoroutine(Act());
    }
コード例 #6
0
ファイル: Skill_02.cs プロジェクト: firerings/ski-proto-01
    void Start() 
    {
        PM = GameObject.Find("PlayerManager").GetComponent<PlayerManager>();
        SM = GameObject.Find("StageManager").GetComponent<StageManager>();
        if ((effect = (GameObject)Instantiate(ResourceLoad.PickGameObject("eskill_2"))) == null)
        {
            return;
        }
        for(int i = 0; i<PM.member_count; i++)
        {
            if(PM.players_info[i].position == Position.FIRST)
            {
                player = PM.players[i];
                break;
            }
        }
        effect.transform.position = player.transform.position;

        SM.SetforcedMatrix(1, 4.0f);
        PM.SendMessage("BeInvincible", 6f);

        StartCoroutine(Act());
    }