コード例 #1
0
ファイル: ColorSeparator.cs プロジェクト: azatshtru/colorox
    private void SetColor()
    {
        if (colorOfIdentity == "ab" || colorOfIdentity == "ba")
        {
            colorOfIdentity = "ab";
        }

        if (colorOfIdentity == "bc" || colorOfIdentity == "cb")
        {
            colorOfIdentity = "bc";
        }

        if (colorOfIdentity == "ca" || colorOfIdentity == "ac")
        {
            colorOfIdentity = "ca";
        }

        if (colorOfIdentity.Length > 2)
        {
            colorOfIdentity = colorOfIdentity.Substring(0, 2);
        }

        ColorIdentity.SetColor(colorOfIdentity, GetComponent <Image>());
    }
コード例 #2
0
 public void SetColorOfCollector()
 {
     ColorIdentity.SetColor(collectorColorId, GetComponent <Image>());
 }
コード例 #3
0
 public void SetWallColor()
 {
     ColorIdentity.SetColor(colorIdentityOfWall, this.GetComponent <Image>());
 }
コード例 #4
0
 public void SetColorOfGenerator()
 {
     ColorIdentity.SetColor(generatorColorId, GetComponent <Image>());
 }