コード例 #1
0
ファイル: FreezeGun.cs プロジェクト: BeardyKing/ProjectRed
    [Range(0, Mathf.PI)] public float offset = 0; // added by kingsley to temp fix the arm

    private void Start()
    {
        nub.GetComponent <SpriteRenderer>().color = Color.green;

        frozenObjects = GameObject.Find("EventHandeler").GetComponent <FrozenObjects>();

        colors = frozenObjects.colors;
    }
コード例 #2
0
    void Start()
    {
        particles     = GetComponent <ParticleSystem>();
        main          = particles.main;
        emission      = particles.emission;
        shape         = particles.shape;
        frozenObjects = GameObject.Find("EventHandeler").GetComponent <FrozenObjects>();
        colors        = frozenObjects.colors;


        //temp maybenot
        player = GameObject.Find("player");
    }